I'm trying to get this to work in wla-spc700:
what it does is recive a 16bit adress from the IO port 2+3 ($F5 and $F6)
then I set the 16bit ya register to this adress I recived. and now I try to jmp to it. but wla gives me:
which basicly in wla language means "you wrote it in a way I don't understand"...
so I looked up the spc-700 opcode list for wla and found
and thats as far as I get exactly as I've writen (with the exception of the + X part):
edit:
got it to assemble by doing this ugly hack:
but I think that it should be a better looking way to do this... =/
Code:
mov $F2, #$F5
movw ya, $F3
jmp [!ya]
movw ya, $F3
jmp [!ya]
what it does is recive a 16bit adress from the IO port 2+3 ($F5 and $F6)
then I set the 16bit ya register to this adress I recived. and now I try to jmp to it. but wla gives me:
Code:
ERROR: Unknown symbol "jmp".
which basicly in wla language means "you wrote it in a way I don't understand"...
so I looked up the spc-700 opcode list for wla and found
Code:
x = 8bit
? = 16bit
$1f "JMP [!?+X]"
? = 16bit
$1f "JMP [!?+X]"
and thats as far as I get exactly as I've writen (with the exception of the + X part):
Code:
jmp [!ya]
edit:
got it to assemble by doing this ugly hack:
Code:
mov $F2, #$F5
movw ya, $F3
movw $0000, ya
mov x, #0
jmp [!$0000+x]
movw ya, $F3
movw $0000, ya
mov x, #0
jmp [!$0000+x]
but I think that it should be a better looking way to do this... =/