summaryrefslogtreecommitdiff
path: root/ROMs/_old/write_display_direct.asm
blob: 9fde417c353586e4ec2a7a878d1b7c73ccb6b8aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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