Join Nostr
2025-05-24 00:38:18 UTC
in reply to

Andrew on Nostr: You could probably replace the LDA addr and CMP imm with just a CMP addr coz the ...

You could probably replace the LDA addr and CMP imm with just a CMP addr coz the accumulator still has the value to be compared.

Edit: You can prolly ditch the CPX as well coz an INX will set the Z flag on incrementing X to zero. And let the code fall through into the overflow handler without a dedicated branch instruction, while changing the BRA to BNE.