From 72f297a479b6749674ec80e91be53b8c482123d2 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Mon, 4 Aug 2025 12:07:39 +1000 Subject: crowbar --- ROMs/script.dat | 24 ++++++++++++++++++++++++ ROMs/script.q1 | Bin 0 -> 67 bytes ROMs/test.q1 | Bin 10 -> 10 bytes 3 files changed, 24 insertions(+) create mode 100644 ROMs/script.dat create mode 100644 ROMs/script.q1 (limited to 'ROMs') 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 diff --git a/ROMs/script.q1 b/ROMs/script.q1 new file mode 100644 index 0000000..3de4840 Binary files /dev/null and b/ROMs/script.q1 differ diff --git a/ROMs/test.q1 b/ROMs/test.q1 index d0c089f..b166c7a 100644 Binary files a/ROMs/test.q1 and b/ROMs/test.q1 differ -- cgit v1.3.1