beautypg.com

Texas Instruments MSP50C614 User Manual

Page 171

background image

Individual Instruction Descriptions

4-79

Assembly Language Instructions

Example 4.14.3.3

ADDS A1, A1~, A1

Add accumulator string A1 to accumulator string A1~, put result in accumulator string A1.

Example 4.14.3.4

MULAPL A0, A0~

ADDS A0, A0~, PH

The first instruction multiplies MR and A0~, adds PL to A0, and stores the result in A0. The second
instruction adds PH to the second word of memory string A0 and puts the result in accumulator string
A0. Note that MULAPL and ADDS constitute a special sequence. When this sequence occurs,
interrupts are NOT disabled, so interrupts should be disabled for correct operation. In extended sign
mode, if A0 is AC0 = 0x0000, A0~ is AC16=0xFFFF and MR=0xFF, after execution AC0=0xFF01,
AC1=0xFFFF.