diff options
Diffstat (limited to 'ROMs/_old')
| -rw-r--r-- | ROMs/_old/hello_world.asm | 42 | ||||
| -rw-r--r-- | ROMs/_old/hello_world.q1 | bin | 2151 -> 0 bytes | |||
| -rw-r--r-- | ROMs/_old/manual.q1 | bin | 10 -> 0 bytes | |||
| -rw-r--r-- | ROMs/_old/write_display_direct.asm | 21 | ||||
| -rw-r--r-- | ROMs/_old/write_display_direct.q1 | bin | 51 -> 0 bytes |
5 files changed, 0 insertions, 63 deletions
diff --git a/ROMs/_old/hello_world.asm b/ROMs/_old/hello_world.asm deleted file mode 100644 index 1d812fb..0000000 --- a/ROMs/_old/hello_world.asm +++ /dev/null @@ -1,42 +0,0 @@ -.org $1FFF -JMP program - -font: - .include "font.bin" - -program: - MOV 0, V0 ; Load character #12 - MOV 0, V1 ; X position - MOV 0, V2 ; Y position - MOV 1, V3 ; Color (1 = white) - CALL write_char ; Call function to write character - SUS - -write_char: - ; V0: Character to write - ; V1: X position - ; V2: Y position - ; V3: Color - ; Write a character to the screen at (V1, V2) with color V3 - - MUL V0, 64 ; V0 = Character * 64 (character size) - MOV AX, V0 ; Store result back into character - - MUL V2, 64 - ADD AX, V1 - MOV AX, V4 ; V4 = X position + Y position * 64 (screen index) - - MOV V4, [$EFFF] ; Debug - - MOV [V0 + $2003], V5 ; Read character (1FFF + 4 since jump address is 1FFF) - MOV V5, [$EFFF] ; Debug - AND V5, $01 ; Mask to get first bit (color) - MOV DX, V5 - MOV V5, [$EFFF] ; Debug - MUL V5, V3 ; V5 = Character * Color (color index) - MOV AX, V5 ; Store result into V5 - - MOV V5, [$EFFF] ; Debug - - MOVB V5, [V4 + $402F] ; Write character to screen memory - RET
\ No newline at end of file diff --git a/ROMs/_old/hello_world.q1 b/ROMs/_old/hello_world.q1 Binary files differdeleted file mode 100644 index fd66ffe..0000000 --- a/ROMs/_old/hello_world.q1 +++ /dev/null diff --git a/ROMs/_old/manual.q1 b/ROMs/_old/manual.q1 Binary files differdeleted file mode 100644 index b166c7a..0000000 --- a/ROMs/_old/manual.q1 +++ /dev/null diff --git a/ROMs/_old/write_display_direct.asm b/ROMs/_old/write_display_direct.asm deleted file mode 100644 index 9fde417..0000000 --- a/ROMs/_old/write_display_direct.asm +++ /dev/null @@ -1,21 +0,0 @@ -.org $1FFF - -program: -MOV $0000, V0 -MUL 32, 64 ; Set AX to 32 * 64 -MOV AX, V1 ; Copy AX to V1 -MOV 1, V2 ; Color value 1 - -reset: -MOV 0, V0 -INC V2 ; Increment color value - -draw: -GT V0, V1 ; V0 > V1? -BZ ; If number exceeds, branch to reset -JMP reset - -MOVB V2, [V0+$402F] ; Set pixel at V0 to color 6 -INC V0 ; Increment V0 - -JMP draw ; Repeat drawing
\ No newline at end of file diff --git a/ROMs/_old/write_display_direct.q1 b/ROMs/_old/write_display_direct.q1 Binary files differdeleted file mode 100644 index 4041649..0000000 --- a/ROMs/_old/write_display_direct.q1 +++ /dev/null |
