P60ARM-B Zarlink Semiconductor, Inc., P60ARM-B Datasheet - Page 68

no-image

P60ARM-B

Manufacturer Part Number
P60ARM-B
Description
32-bit RISC microprocessor
Manufacturer
Zarlink Semiconductor, Inc.
Datasheet
P60ARM-B
4.15.4 Loading a word from an unknown alignment
4.15.5 Loading a halfword (Little Endian)
4.15.6 Loading a halfword (Big Endian)
64
BIC
LDMIA
AND
MOVS
MOVNE
RSBNE
ORRNE
LDR
MOV
MOV
LDR
MOV
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
Ra, [Rb,#2]
Ra,Ra,LSL #16
Ra,Ra,LSR #16
Ra, [Rb,#2]
Ra,Ra,LSR #16
; 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
; Get halfword to bits 15:0
; move to top
; and back to bottom
; use ASR to get sign extended version
; Get halfword to bits 31:16
;
;
and back to bottom
use ASR to get sign extended version

Related parts for P60ARM-B