Wrong syntax of 16-bit value in zeropage #1
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Throught the code a value in zeropage are stored like this x =$4041 where we have always used >x = $40 as the low nibble and the <x = 41 as the high nibble. The problem is 2-folded. One is that this is not per the cc65 documentation, the > operator should signal the high nibble and vice versa. The other problem is that to store $4000 to x its needed to do this:
LDA #<$4000
STA >X
LDA #>$4000
STA <X
Yes its ugly and should look like this
LDA #<$4000
STA <X
LDA #>$4000
STA >X