summaryrefslogtreecommitdiff
path: root/ROMs/script.dat
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-04 12:07:39 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-04 12:07:39 +1000
commit72f297a479b6749674ec80e91be53b8c482123d2 (patch)
tree05465784b2b5b5adbd695b50e8394c6f78e3a455 /ROMs/script.dat
parent86452af2d48e2d1883dbfd67316e371f2a593bfe (diff)
crowbar
Diffstat (limited to 'ROMs/script.dat')
-rw-r--r--ROMs/script.dat24
1 files changed, 24 insertions, 0 deletions
diff --git a/ROMs/script.dat b/ROMs/script.dat
new file mode 100644
index 0000000..c2c5dc2
--- /dev/null
+++ b/ROMs/script.dat
@@ -0,0 +1,24 @@
+.org $1FFF
+
+program:
+MOV $0000, V0
+MUL 32, 64 ; Set V1 to 32 * 64
+MOV AX, V1 ; Copy V1 to AX
+MOV 1, V2 ; Color value 1
+
+reset:
+INC
+MOV $0000, V0 ;
+ADD V2, 1 ; Increment color value V2
+MOV AX, V2 ; Copy V2 to AX
+
+draw:
+ADD V0, 2 ; Increment V0 by 1
+MOV AX, V0 ; Copy AX to V0
+
+GT V0, V1 ; V0 > V1?
+BZ
+JMP reset
+
+MOV $06, [V0+$3FFF] ; Set pixel at V0 to color 6
+JMP draw ; Repeat drawing \ No newline at end of file