aboutsummaryrefslogtreecommitdiff
path: root/GPU2D.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'GPU2D.cpp')
-rw-r--r--GPU2D.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/GPU2D.cpp b/GPU2D.cpp
index a879576..e759afb 100644
--- a/GPU2D.cpp
+++ b/GPU2D.cpp
@@ -32,6 +32,9 @@ u16 VCount;
u16 DispStat[2], VMatch[2];
+u8 Palette[2*1024];
+u8 OAM[2*1024];
+
u8 VRAM_A[128*1024];
u8 VRAM_B[128*1024];
u8 VRAM_C[128*1024];
@@ -63,6 +66,9 @@ void Reset()
VMatch[0] = 0;
VMatch[1] = 0;
+ memset(Palette, 0, 2*1024);
+ memset(OAM, 0, 2*1024);
+
memset(VRAM_A, 0, 128*1024);
memset(VRAM_B, 0, 128*1024);
memset(VRAM_C, 0, 128*1024);