libtonc icon indicating copy to clipboard operation
libtonc copied to clipboard

fix incorrect 32-bit read of 16-bit register

Open redthing1 opened this issue 2 years ago • 1 comments

this code has a bug where it reads 32 bit value from IME, which is a 16 bit reg. this can cause open bus.

IME is a 16 bit register and shouldn't be read from using ldr. Prevents possibly unwanted open bus behavior.

redthing1 avatar Jan 09 '22 23:01 redthing1