diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-28 12:35:24 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-28 12:35:24 +1000 |
| commit | 7f96fc5e7f412a66d460dcaa82bbdbcaea08f360 (patch) | |
| tree | 67ebd30bce45f8e5ffed73212f287b4152a5b71d /ROMs/_old/write_display_direct.asm | |
| parent | 634681ce2bb36cd686943102a0f071cd6a09049f (diff) | |
everything is finally at peace
Diffstat (limited to 'ROMs/_old/write_display_direct.asm')
| -rw-r--r-- | ROMs/_old/write_display_direct.asm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ROMs/_old/write_display_direct.asm b/ROMs/_old/write_display_direct.asm new file mode 100644 index 0000000..9fde417 --- /dev/null +++ b/ROMs/_old/write_display_direct.asm @@ -0,0 +1,21 @@ +.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 |
