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.
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.