From 44e155cda03b7c2fb4c6beba3b01cdae6652ebb8 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 30 Jan 2018 02:09:53 +0200 Subject: [PATCH] fix missed clear --- testsram/main.c | 5 +++++ 1 file changed, 5 insertions(+) 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++) -- 2.39.5