Gradient on an LCD monitor... yeah Assembly! |
colour .req r0
y .req r1
mov y,#768
drawRow$:
x .req r2
mov x,#1024
drawPixel$:
strh colour,[fbAddr]
add fbAddr,#2
sub x,#1
teq x,#0
bne drawPixel$
sub y,#1
add colour,#1
teq y,#0
bne drawRow$
b render$
.unreq fbAddr
.unreq fbInfoAddr
It's pretty useless right now, but soon I can use these same techniques to write letters on the screen, leading to my Command Line Interface. Check back soon for more updates!
No comments:
Post a Comment