Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

blank.s File Reference

Assembler for void RScreenUtils::BlankAsm(TUint16 aColor). More...

Go to the source code of this file.


Detailed Description

Assembler for void RScreenUtils::BlankAsm(TUint16 aColor).

@@  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.


Documentation for Game (Beta) version 1.44.