Download [1] Cortex-M4 Devices Generic User Guide

Transcript
The Cortex-M4 Instruction Set
Examples
ARM DUI 0553A
ID121610
SHASX
R7, R4, R2
SHSAX
R0, R3, R5
;
;
;
;
;
;
;
;
Adds top halfword of R4 to bottom halfword of R2
and writes halved result to top halfword of R7
Subtracts top halfword of R2 from bottom halfword of
R4 and writes halved result to bottom halfword of R7
Subtracts bottom halfword of R5 from top halfword
of R3 and writes halved result to top halfword of R0
Adds top halfword of R5 to bottom halfword of R3 and
writes halved result to bottom halfword of R0.
Copyright © 2010 ARM. All rights reserved.
Non-Confidential
3-57