From 7a8d2bcd75d88a5429937bf551878c55e1dcf0fd Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Wed, 6 Aug 2025 22:36:34 +1000 Subject: moved everything to seperate projects, and started compiler work + push and pop instructions added --- ROMs/write_display_direct.asm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ROMs/write_display_direct.asm (limited to 'ROMs/write_display_direct.asm') diff --git a/ROMs/write_display_direct.asm b/ROMs/write_display_direct.asm new file mode 100644 index 0000000..9fde417 --- /dev/null +++ b/ROMs/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 -- cgit v1.3.1