Je voudrais commencer à programmer ma calculatrice TI83+ avec l'ASM. Mais voilà le problème... Je suis présentementement ce Howto : http://nwps.ws/~dragonfire/Asmin28/lesson/day01.html#req .
Premièrement, je ne sais pas où trouver le fichier TI83PLUS.INC. J'ai recherché sur Internet et j'en ai trouvé un qui me paraissait bien http://education.ti.com/downloads/misc/ti83plus.inc . J'ai donc créé le fichier hello.z80 contenant ceci.
.nolist
#include "ti83plus.inc"
#define ProgStart $9D95
.list
.org ProgStart - 2
.db t2ByteTok, tAsmCmp
b_call(_ClrLCDFull)
ld hl, 0
ld (PenCol), hl
ld hl, msg
b_call(_PutS) ; Display the text
b_call(_NewLine)
ret
msg:
.db "Hello world!", 0
.end
.end
Lorsque je passe en compilation avec TASM.EXE -80 -i -b hello.z80 hello.bin ,
Il y a une longue liste d'erreurs finissant avec :
ti83plus.inc line 8504: unrecognized instruction. (e_ss)
ti83plus.inc line 8505: Label not found: (e_ms)
ti83plus.inc line 8505: label value misalligned. (e_ms)
ti83plus.inc line 8505: unrecognized instruction. (e_ms)
hello.z80 line 0006: Label not found: (t2ByteTok)
hello.z80 line 0006: Label not found: (tAsmCmp)
hello.z80 line 0007: unrecognized instruction. (B_CALL(_CLRLCDFULL))
hello.z80 line 0009: Label not found: (PenCol)
hello.z80 line 0009: Unused data in MS byte of argument. (2)
hello.z80 line 0011: unrecognized instruction. (B_CALL(_PUTS))
hello.z80 line 0012: unrecognized instruction. (B_CALL(_NEWLINE))
tasm: pass 2 complete.
tasm: Number of errors = 21673
Qu'est-ce que je fais de pas correct?
Merci beaucoup, ça fait 3h que j'essaie de réussir à compiler un petit Hello World
