diff options
Diffstat (limited to 'ROMs')
| -rw-r--r-- | ROMs/script.dat | 24 | ||||
| -rw-r--r-- | ROMs/script.q1 | bin | 0 -> 67 bytes | |||
| -rw-r--r-- | ROMs/test.q1 | bin | 10 -> 10 bytes |
3 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 diff --git a/ROMs/script.q1 b/ROMs/script.q1 Binary files differnew file mode 100644 index 0000000..3de4840 --- /dev/null +++ b/ROMs/script.q1 diff --git a/ROMs/test.q1 b/ROMs/test.q1 Binary files differindex d0c089f..b166c7a 100644 --- a/ROMs/test.q1 +++ b/ROMs/test.q1 |
