gbdev / gb-opcodes

https://gbdev.io/gb-opcodes/optables/
Creative Commons Zero v1.0 Universal
24 stars 10 forks source link

Rotate `A` register instructions Z flag is incorrect #13

Closed 64kramsystem closed 3 years ago

64kramsystem commented 3 years ago

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 the A register, the Z flag is set according to the result; currently, it's described as being reset.

Instructions: RRA, RLA, RRCA, RLCA.

avivace commented 3 years ago

Current descriptions are correct. Please check with emulators and ignore that document