Re: ZX81-IDE Software Development Tool, IDE
Posted: Thu Sep 26, 2013 7:04 am
First off, let say how great ZX81-IDE is. I'm "finally" learning z80 assembly and I really appreciate how easy to get up a going using this IDE. I did, however, run into an issue while entering in a program from "Mastering Machine Code on Your ZX81."
When using the "JR NC,$F8" or "JR NZ,$F8" op codes with literals, the assembler is interpreting these as "JR $F8". Fortunately, you can workaround this by using a label. Here is an example listing showing the problem (notice the op code 18 instead of 30 or 20):
When using the "JR NC,$F8" or "JR NZ,$F8" op codes with literals, the assembler is interpreting these as "JR $F8". Fortunately, you can workaround this by using a label. Here is an example listing showing the problem (notice the op code 18 instead of 30 or 20):
Code: Select all
007C: [4085] 18 F8 F8: JR NC,$F8
007E: [4087] 30 FC JR NC,F8
0080: [4089] 18 F8 JR NZ,$F8
0082: [408B] 20 F8 JR NZ,F8
0084: [408D] 18 F6 JR F8
0086: [408F] 18 F4 JR F8