notaz.gp2x.de
/
megadrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f936a9
)
fix missed clear
author
notaz
<notasas@gmail.com>
Tue, 30 Jan 2018 00:09:53 +0000
(
02:09
+0200)
committer
notaz
<notasas@gmail.com>
Tue, 30 Jan 2018 00:09:53 +0000
(
02:09
+0200)
testsram/main.c
patch
|
blob
|
blame
|
history
diff --git
a/testsram/main.c
b/testsram/main.c
index
f9500b4
..
7f85399
100644
(file)
--- 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++)