Samsung S3C2440A User Manual Page 63

  • Download
  • Add to my manuals
  • Print
  • Page
    / 560
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 62
ARM INSTRUCTION SET S3C2440A RISC MICROPROCESSOR
3-6
Examples
ADR R0, Into_THUMB + 1
Generate branch target address and set bit 0 high –
hence it comes in THUMB state
BX R0
Branch and change to THUMB state.
CODE16
Assemble subsequent code as
Into_THUMB
THUMB instructions
ADR R5, Back_to_ARM
Generate branch target to word aligned address
hence bit 0 is low and so change back to ARM state.
BX R5
Branch and change back to ARM state.
ALIGN
Word alignment
CODE32
Assemble subsequent code as ARM instructions
Back_to_ARM
Page view 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 559 560

Comments to this Manuals

No comments