Samsung S3C2500B User Manual page 118

Table of Contents

Advertisement

INSTRUCTION SET
Examples
ADR
BX
CODE16
Into_THUMB
ADR R5, Back_to_ARM
BX R5
ALIGN
CODE32
Back_to_ARM
3-6
R0, Into_THUMB + 1
R0
; 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
S3C2500B

Advertisement

Table of Contents
loading

Table of Contents