Le problème de ta routine de détection hardware (message 2) est qu'elle ne marche pas sur TI-92+ AMS 1.00. (Même si je suis d'accord, beaucoup de choses ne marchent pas avec cette version, même certaines fonctions de
TIGCCLIB.)
Le suivant marche certainement (tiré des sources de
h220xTSR):
;detect the hardware version
;Thanks to Julien Muchembled for the C version listed in the TI-GCC FAQ.
;Converted to assembly by Kevin Kofler
move.l $c8,d0
and.l #$600000,d0 ;get the ROM base
move.l d0,a0
move.l 260(a0),a1 ;get the pointer to the hardware parameter block
add.l #$10000,a0
cmp.l a0,a1 ;check if the hardware parameter block is near enough
bcc hw1 ;if it is too far, it is HW1
cmp.w #22,(a1) ;check if the parameter block contains the hardware version
bls hw1 ;if it is too small, it is HW1
cmp.l #2,22(a1) ;check the hardware version
bne hw1 ;if not 2, it is HW1 (or an unknown hardware version)
;end of hardware version detection routine
Si c'est une HW1, ça saute vers le label
hw1, si c'est une HW2, ça continue juste après ce code.