Baekalfen / PyBoy

Game Boy emulator written in Python
Other
4.57k stars 472 forks source link

Fix get() in LCD register FF69 to return 8 bits. Fixes #224 #300

Closed krs013 closed 8 months ago

krs013 commented 8 months ago

The LCD register get method was not checking the value of .hl and returning a byte; it returned the whole 16-bit register. This was either sending the wrong data to the CPU or promoting registers to 16 bits depending on whether PyBoy was compiled or not.