Yes, you are right. That instruction is wrong. It was supposed to be simply bit $80 and test the acculumator. Somehow, the assembler didn’t flag this. It still works because it is effectively a NOP as you mentioned, and the lda PLAYER_HP_H on line 281 already sets the negative flag appropriately. Good catch! That line can be removed. I’ll fix it along with an upcoming feature update.
The version of xa that I have is 2.4.0 and it was installed from the standard Ubuntu 24.04 repository. This change looks like it was introduced in 2.4.1 and Ubuntu hasn’t updated yet.
Wow :-) Your game is really nice. I've played it a few times (with the basic and the 6502 versions) - now I'm curious to check the source code too. Congratulations :D
Thank you so much. And thanks for letting me use your video too.
To echo what I said on Reddit, my initial version used the C64 cursor keys, which is actually an awful experience due to having to use shift to go up or left. I intend to add configurable controls (or at least a selectable control scheme) and joystick support in a future update.
← Return to game
Comments
Log in with itch.io to leave a comment.
very good
Assembler question, if i may:
Source code line 283 has this instruction:
bit #$80
In the .prg file this is translated as opcode $89, which is illegal opcode NOP imm.
How is that working?
Especially since XA says: "undocumented opcodes are intentionally not supported."
And when i compile your source code, the generated code is partly at different locations. Weird.
P.S. Fun little game! I won! ;-)
Yes, you are right. That instruction is wrong. It was supposed to be simply
bit $80and test the acculumator. Somehow, the assembler didn’t flag this. It still works because it is effectively a NOP as you mentioned, and thelda PLAYER_HP_Hon line 281 already sets the negative flag appropriately. Good catch! That line can be removed. I’ll fix it along with an upcoming feature update.The version of xa that I have is 2.4.0 and it was installed from the standard Ubuntu 24.04 repository. This change looks like it was introduced in 2.4.1 and Ubuntu hasn’t updated yet.
Wow :-) Your game is really nice. I've played it a few times (with the basic and the 6502 versions) - now I'm curious to check the source code too.
Congratulations :D
Thank you so much, my friend!
Very nice littl' game! I'm just wondering, why you choose this kinda controls, instead of the very common WASD? Thanks for sharing this with us!
Thank you so much. And thanks for letting me use your video too.
To echo what I said on Reddit, my initial version used the C64 cursor keys, which is actually an awful experience due to having to use shift to go up or left. I intend to add configurable controls (or at least a selectable control scheme) and joystick support in a future update.
You are very welcome :). I absolutly enjoying your game!