Atmel ARM-Based Evaluation Kit for SAM4S16C, 32-Bit ARM® Cortex® Microcontroller ATSAM4S-WPIR-RD ATSAM4S-WPIR-RD Data Sheet

Product codes
ATSAM4S-WPIR-RD
Page of 1231
157
SAM4S Series [DATASHEET]
Atmel-11100G-ATARM-SAM4S-Datasheet_27-May-14
In these instructions:
Do not use SP and do not use PC.
RdHi
 and RdLo must be different registers.
Examples
SMULBT
R0, R4, R5
; Multiplies the bottom halfword of R4 with the
 ; top halfword of R5, multiplies results and
 ; writes to R0
SMULBB       R0, R4, R5  ; Multiplies the bottom halfword of R4 with the
; bottom halfword of R5, multiplies results and
 ; writes to R0
SMULTT       R0, R4, R5  ; Multiplies the top halfword of R4 with the top
 ; halfword of R5, multiplies results and writes
 ; to R0
SMULTB       R0, R4, R5  ; Multiplies the top halfword of R4 with the
; bottom halfword of R5, multiplies results and
 ; and writes to R0
SMULWT
R4, R5, R3
; Multiplies R5 with the top halfword of R3,
; extracts top 32 bits and writes to R4
SMULWB       R4, R5, R3  ; Multiplies R5 with the bottom halfword of R3,
; extracts top 32 bits and writes to R4.