![]() |
|
asm context issue? - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: Help & Support (https://forum.boriel.com/forumdisplay.php?fid=16) +---- Thread: asm context issue? (/showthread.php?tid=391) |
asm context issue? - britlion - 2011-10-25 Code: asmI 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 Re: asm context issue? - boriel - 2011-10-25 According to the ZX Spectrum manual, the Z80 syntax instruction is sub N not sub a, N for 8 bits. So: Code: asmTry this and tell me :?: Re: asm context issue? - britlion - 2011-10-26 Ugh. Looks like my reference may be incorrect: Code: SUB A,imm8You're right. It looks like Zilog officially use SUB N - which is inconsistent with all their other instructions! How bizarre! Re: asm context issue? - boriel - 2011-10-26 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: |