fix bug of WX,WY

now can render window
This commit is contained in:
Hojun-Cho 2024-07-23 14:15:56 +09:00
parent 5de3efefb5
commit 05a3ada827

2
ppu.c
View File

@ -112,7 +112,7 @@ ppurender(void)
win = 1; win = 1;
ta = 0x1800 | reg[LCDC] << 4 & 0x400 | ppuw - reg[WY] << 2 & 0x3E0; ta = 0x1800 | reg[LCDC] << 4 & 0x400 | ppuw - reg[WY] << 2 & 0x3E0;
y = ppuw - reg[WY] << 1 & 14; y = ppuw - reg[WY] << 1 & 14;
cyc += 2; cyc += 12;
m = 175 - reg[WX]; m = 175 - reg[WX];
goto restart; goto restart;
} }