cc
4B 78 | Load with immediate offset,
pre-indexed immediate offset, or
post-indexed immediate offset.
| ldr{t}{cond} Rt,† {,#offset}] immediate
ldr{t}{cond} Rt,[Rn ,#offset]! pre-indexed
ldr{t}{cond} Rt,[Rn] ,#offset] post-indexed
Rt target, Rn address base, ℾ Rt+1 ; address must be Word aligned
LDR r8,[r10] ; loads R8 from the address in R10.
LDRNE r2,[r5,#16]! ; (conditionally) loads R2 from a word
; [R5]+16 bytes & increments R5 by 16.
i.e. if R5 pointed to the nth entry in a 16 byte table,
loads first word from next entry and advances R5 to next entry
if Rt is PC branches to the address loaded.
|
sub{S}{cond | B0 | Subtract without carry |
sub{S}{cond {Rd}, Rn, O2
Rd <- Rn - O2
S set Condition Code ; Rd destination, Rn original value; Thunb:imm> 0..4096
SBCS
SMULL
o
| UXTH[cc [Rd],Rm[,rotation] | Zero extend Halfword.
Extends a 16-bit value to a 32-bit value.
rotation ROR #8|16|24
CBZ r,label | Compare and Branch on Zero. aka CMP;
BEQ but CC not affected.
| IT cc | If Then
Following instruction executed without effecting CC
IT cc when c is Then or Else ex ITTE
Example: IT EG
ADDEQ r0, r1, r2
| | | | | |