Merge pull request #453 from remind-me-later/master

fix rlc_r zero flag
This commit is contained in:
Lior Halphon 2022-05-21 22:15:32 +03:00 committed by GitHub
commit 12891c641b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1380,7 +1380,7 @@ static void rlc_r(GB_gameboy_t *gb, uint8_t opcode)
if (carry) { if (carry) {
gb->af |= GB_CARRY_FLAG; gb->af |= GB_CARRY_FLAG;
} }
if (!(value << 1)) { if (value == 0) {
gb->af |= GB_ZERO_FLAG; gb->af |= GB_ZERO_FLAG;
} }
} }