aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-03-20 17:04:33 +0100
committerlonkaars <loek@pipeframe.xyz>2023-03-20 17:04:33 +0100
commit0c23afa5651cc3d7f9ad53311446325e35313347 (patch)
treeb5f010ef6713fb30e44736e3138eaad314b4d353 /test
parent42c5e8f324129b500a04c1a060a20f411e105dfd (diff)
debugged the ppu (still WIP, but some output is visible)
Diffstat (limited to 'test')
-rw-r--r--test/ppu-stm-integration-demo/.gitignore2
-rw-r--r--test/ppu-stm-integration-demo/data.h4
-rw-r--r--test/ppu-stm-integration-demo/makefile4
-rw-r--r--test/ppu-stm-integration-demo/test-background-color.txt1
-rw-r--r--test/ppu-stm-integration-demo/test-image.txt (renamed from test/ppu-stm-integration-demo/data.txt)20
5 files changed, 19 insertions, 12 deletions
diff --git a/test/ppu-stm-integration-demo/.gitignore b/test/ppu-stm-integration-demo/.gitignore
index f6e7f8c..8301053 100644
--- a/test/ppu-stm-integration-demo/.gitignore
+++ b/test/ppu-stm-integration-demo/.gitignore
@@ -1 +1 @@
-data.h
+test-*.h
diff --git a/test/ppu-stm-integration-demo/data.h b/test/ppu-stm-integration-demo/data.h
new file mode 100644
index 0000000..a1e3097
--- /dev/null
+++ b/test/ppu-stm-integration-demo/data.h
@@ -0,0 +1,4 @@
+#pragma once
+
+#include "test-image.h"
+
diff --git a/test/ppu-stm-integration-demo/makefile b/test/ppu-stm-integration-demo/makefile
index 715a22b..0eeada5 100644
--- a/test/ppu-stm-integration-demo/makefile
+++ b/test/ppu-stm-integration-demo/makefile
@@ -1,4 +1,6 @@
-data.h: data.txt
+all: test-background-color.h test-image.h
+
+%.h: %.txt
echo "#pragma once" > $@
echo "#include <stdint.h>" >> $@
(printf "#define HH_PPUINTDEMO_LENGTH "; wc -l < $<) >> $@
diff --git a/test/ppu-stm-integration-demo/test-background-color.txt b/test/ppu-stm-integration-demo/test-background-color.txt
new file mode 100644
index 0000000..47ae2c2
--- /dev/null
+++ b/test/ppu-stm-integration-demo/test-background-color.txt
@@ -0,0 +1 @@
+dc00: 0f0f
diff --git a/test/ppu-stm-integration-demo/data.txt b/test/ppu-stm-integration-demo/test-image.txt
index f0c3b43..48817a1 100644
--- a/test/ppu-stm-integration-demo/data.txt
+++ b/test/ppu-stm-integration-demo/test-image.txt
@@ -2509,13 +2509,13 @@ dc21: 00ff
dc29: 000f
de00: 0401
de01: 0000
-d800: a400
-d801: 1ad3
-d802: 8800
-d803: 1773
-d804: 4c00
-d805: 1372
-d806: 7000
-d807: 0fb0
-d808: 7400
-d809: 0dce
+d810: a400
+d811: 1ad3
+d812: 8800
+d813: 1773
+d814: 4c00
+d815: 1372
+d816: 7000
+d817: 0fb0
+d818: 7400
+d819: 0dce