10-25-2011, 09:41 PM
Code:
asm
sub a,3
end asm
I think this is expecting sub to be the basic context subroutine, not the asm subtract command, so fails to compile?
zxb 1.2.8-s758
asm context issue?
|
10-25-2011, 09:41 PM
Code: asm I think this is expecting sub to be the basic context subroutine, not the asm subtract command, so fails to compile? zxb 1.2.8-s758
10-25-2011, 10:01 PM
According to the ZX Spectrum manual, the Z80 syntax instruction is sub N not sub a, N for 8 bits.
So: Code: asm Try this and tell me :?:
10-26-2011, 09:39 AM
Ugh.
Looks like my reference may be incorrect: Code: SUB A,imm8 You're right. It looks like Zilog officially use SUB N - which is inconsistent with all their other instructions! How bizarre!
10-26-2011, 10:47 AM
I used the speccy user manual to get the asm mnemonics! :mrgreen:
Anyway, I will try to make de ASM to allow SUB A, N also. :roll: |
« Next Oldest | Next Newest »
|