Closed 64kramsystem closed 3 years ago
Updated with other instructions, since I've found that the issue is present in the entire Rotate register A
family.
The GB manual is wrong, the 2 byte instructions work in a different way than the 1 byte instructions.
That manual has lots of errata like that one, you shouldn't use it.
As mentioned, you shouldn't use the "GameBoy CPU Manual" as source as it's inaccurate in many opcode descriptions.
According to the GameBoy CPU Manual (but this is also verifiable by comparing with the general-register counterparts, e.g.
RLC r
), when performing a rotation (through carry or not) on theA
register, theZ
flag is set according to the result.Instructions:
RRA
,RLA
,RRCA
,RLCA
.Closes #13.