Download USER`S MANUAL

Transcript
INSTRUCTION SET
S3C4520A RISC MICROCONTROLLER
Examples
ADR
R0, Into_THUMB + 1
BX
R0
CODE16
Into_THUMB
ADR R5, Back_to_ARM
BX R5
ALIGN
CODE32
Back_to_ARM
3-6
;
;
;
;
;
;
;
Generate branch target address
and set bit 0 high - hence
arrive in THUMB state.
Branch and change to THUMB
state.
Assemble subsequent code as
THUMB instructions
; Generate branch target to word aligned address
; - hence bit 0 is low and so change back to ARM state.
; Branch and change back to ARM state.
; Word align
; Assemble subsequent code as ARM instructions