Go to the source code of this file.
@@ Copyright 2002 Kenneth Guy,
@@
@@ You are free to take the source and do as you wish with it.
@@ However it would be nice if you let me know if the code was useful
@@ to you and give me an acknowledgement if you use a significant portion
@@ of the code in an application.
@@
.global BlankAsm__12RScreenUtilsUs
BlankAsm__12RScreenUtilsUs:
@@ r0, TScreenUtils* this
@ 0 - iScreenBase
@@ r1, colour
@@ save registers and return address on full declining stack
stmfd sp!, {r0-r12,lr}
ldr r0,[r0] @ r0 = iScreenBase
orr r1,r1,r1,lsl #16 @ Setup 8 registers = 16 pixels
mov r2,r1
mov r3,r1
mov r4,r1
mov r5,r1
mov r6,r1
mov r7,r1
mov r8,r1
mov r9,#8000 @ loop 8000 times
blankloop:
stmia r0!,{r1-r8} @ write registers to screen, increment r0 afterwards
subs r9,r9,#1
bne blankloop @ loop till r9 = 0
ldmfd sp!, {r0-r12,lr}
bx lr
Definition in file blank.s.