I thought I continued on this one instead of makeing a new thread
I got this problem..
I want to load a 16bit adress (a label) into the YA register
this is how I think it should be:
movw ya, #data
... lots of code ...
... lots of data ....
but wla-dx don't wont to assemble it
all I get is the standard error that wla-dx seems to allways say when something is wrong:
STACK_CALCULATE: Syntax error. Invalid use of modulo.
ERROR: Couldn't parse "movw".
can anyone help me?
nevermind.. by reading the mnemonics of the spc700 it seems like the movw can't do 16bit numbers...?! then what is the w in movw for if not word?
x = 8bit
"MOVW x,YA" $da
"MOVW YA,x" $ba
now I feel really lost...
so I guess inorder to do what I want I have
to do something like
mov y, data <- high 8bit part of adress
mov a, data <- low 8bit part of adress
but how do I do this in wla-dx? I have seen other assemblers use things like:
but I can't find anything similar for wla-dx (maybe I have to look harder?)
after lots of trial and error I have discoverd that wla-dx use the <data and >data... so now my code works. yay!!