From: notaz Date: Tue, 30 Jan 2018 00:09:53 +0000 (+0200) Subject: fix missed clear X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44e155cda03b7c2fb4c6beba3b01cdae6652ebb8;p=megadrive.git fix missed clear --- diff --git a/testsram/main.c b/testsram/main.c index f9500b4..7f85399 100644 --- a/testsram/main.c +++ b/testsram/main.c @@ -439,6 +439,11 @@ int main() VDP_setReg(VDP_SCROLLSZ, 0x01); VDP_setReg(VDP_BACKDROP, 0); + /* pattern 0 */ + write32(GFX_CTRL_PORT, GFX_WRITE_VRAM_ADDR(0)); + for (i = 0; i < 32 / 4; i++) + write32(GFX_DATA_PORT, 0); + /* clear name tables */ write32(GFX_CTRL_PORT, GFX_WRITE_VRAM_ADDR(APLANE)); for (i = 0; i < PLANE_W * PLANE_H / 2; i++)