Trying to get a program to run on my ti84cse,


Code:
#include "ti84cse.inc" ; eq file

.assume ADL=1
.org userMem-2
.db t2ByteTok, tasmCmp

b_call(_ClearFullScreen)
ld hl,$0
ret

InsertText:
.db "a", 0
.end


running w/ batch: spasm64.exe a.asm bin\out.8xp

results in : a.asm:14: error SE113: Unknown opcode 'hl'

In ignoring the error, the program fails to run on my calculator when passing it to Asm(). Assembling w/ spasm, on 64-bit machine. Transfering w/ TI connect.
What if you use .assume ADL=0 ? I'm not a TI-Z80/TI-eZ80 programmer, but ADL strikes me as eZ80, whereas the 84+CSE has a Z80 processor. The 84+CE is the one with an eZ80 processor.
Lionel Debroux wrote:
What if you use .assume ADL=0 ? I'm not a TI-Z80/TI-eZ80 programmer, but ADL strikes me as eZ80, whereas the 84+CSE has a Z80 processor. The 84+CE is the one with an eZ80 processor.


Calc continues to crash; my assembler is not behaving as supposed to on the z80; I did not know that .assmume ADL=1 was a eZ80 preprocessor. Chaning it bears little effect it seems.
You need to indent your code. Instructions with no preceding whitespace cause a label to be defined with the instruction's name, which is why it's then trying to parse hl as an instruction.

And yes, as mentioned, you should not need a .assume directive, and make sure you're not using the -E flag.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement