Loading A Word From An Unknown Alignment - Samsung S3C2501X User Manual

32-bit risc microprocessor
Table of Contents

Advertisement

S3C2501X

3.18.4 LOADING A WORD FROM AN UNKNOWN ALIGNMENT

BIC
LDMIA
AND
MOVS
MOVNE
RSBNE
ORRNE
Rb,Ra,#3
Rb,{Rd,Rc}
Rb,Ra,#3
Rb,Rb,LSL#3
Rd,Rd,LSR Rb
Rb,Rb,#32
Rd,Rd,Rc,LSL Rb
; Enter with address in Ra (32 bits) uses
; Rb, Rc result in Rd. Note d must be less than c e.g. 0,1
; Get word aligned address
; Get 64 bits containing answer
; Correction factor in bytes
;
...now in bits and test if aligned
; Produce bottom of result word (if not aligned)
; Get other shift amount
; Combine two halves to get result
INSTRUCTION SET
3-63

Advertisement

Table of Contents
loading

Table of Contents