1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-12-01 13:50:30 +00:00
8bitworkshop/presets/arm32/vidfill.vasm
2021-06-06 14:23:27 -05:00

17 lines
284 B
Plaintext

.set VIDMEM, 0x40000000
mov r0, #0xff880000 ; RGB value
mov r1, #VIDMEM ; memory start
LOOP2:
mov r2, #160*128 ; word count
LOOP:
str r0, [r1, r2, lsl #2]
sub r2, r2, #1
cmp r2, #0
bge LOOP
add r0, r0, #0xf002
cmp r0, #0
blt LOOP2
.ualong 0x11223344 ; illegal instruction