
 IF :DEF:|ads$version| 
    AREA    JumpCode, CODE, READONLY
 ELSE 
    AREA    JumpCode, CODE, READONLY, INTERWORK
 ENDIF































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































    IMPORT  DoVectorReset
    IMPORT  DoVectorUndefined
    IMPORT  DoVectorSWI
    IMPORT  DoVectorPrefetch
    IMPORT  DoVectorAbort
    IMPORT  DoVectorIRQ
    IMPORT  DoVectorFIQ

CODE32


    LDR     pc,=DoDecideVectorReset

    LDR     pc,=DoVectorUndefined

    LDR     pc,=DoVectorSWI

    LDR     pc,=DoVectorPrefetch

    LDR     pc,=DoVectorAbort

DoVectorReserved
    B       DoVectorReserved        

    LDR     pc,=DoVectorIRQ

    LDR     pc,=DoVectorFIQ         

DoDecideVectorReset
    LDR     r2,=(0xFC130000 + 0x78)
    LDR     r0,[r2]
    LDR     r1,=0x01 
    ANDS   r2,r0,r1 

    BEQ   Arm7VectorReset 

Arm9VectorReset
    LDR     pc,=0x20300000

Arm7VectorReset
    LDR     pc,=0x20038000


    END
