GB IO: Speculative keypad fix

This commit is contained in:
Jeffrey Pfau 2016-01-20 22:00:45 -08:00
parent 73e3532277
commit 9140018b85
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ static uint8_t _readKeys(struct GB* gb) {
break;
default:
// ???
keys = 0;
break;
}
return 0xC0 | (gb->memory.io[REG_JOYP] | 0xF) ^ (keys & 0xF);