Individual Instruction Descriptions
4-175
Assembly Language Instructions
Syntax
Description
SUB A
n[~], An, {adrs} [, next A]
Subtract effective data memory word from A
n[~], store result in An
SUB A
n[~], An[~], imm16 [, next A]
Subtract immediate word from A
n[~], store result in An[~]
SUB A
n[~], An[~], PH [, next A]
Subtract Product High (PH) register from A
n[~], store result in An[~]
SUB A
n[~], An, An~ [, next A]
Subtract A
n~ word from An word, store result in An[~]
SUB A
n[~], An~, An [, next A]
Subtract A
n word from An~ word, store result in An[~]
SUB R
x, imm16
Subtract immediate word from R
x
SUB R
x, R5
Subtract R5 from R
x
See Also
SUBB, SUBS, ADD, ADDB, ADDS
Example 4.14.79.1
SUB A1, A1, 74
Subtract 74 (decimal) immediate from accumulator A1, put result in accumulator A1.
Example 4.14.79.2
SUB A0, A0, 2, ++A
Pre–increment pointer AP0, subtract 2 from new accumulator A0, put result in accumulator A0.
Example 4.14.79.3
SUB A1, A1~, A1
Subtract accumulator A1 from accumulator A1~, put result in accumulator A1.
Example 4.14.79.4
SUB A1, A1, A1~, ––A
Pre–decrement AP1. Subtract accumulator A1~ from accumulator A1, put result in accumulator A1.
Example 4.14.79.5
SUB A3~, A3, *R4—
Subtract word at address in R4 from A3, store result in A3~, decrement value in R4 by 2 (word mode)
after the subtraction.
Example 4.14.79.6
SUB R3, R5
Subtract R5 from R3, put result in R3.
Summary of Contents for MSP50C614
Page 1: ...MSP50C614 Mixed Signal Processor User s Guide SPSU014 January 2000 Printed on Recycled Paper ...
Page 6: ...vi ...
Page 92: ...3 22 ...
Page 300: ...Instruction Set Summay 4 208 Assembly Language Instructions ...
Page 314: ...Software Emulator 5 14 Figure 5 13 Project Menu Figure 5 14 Project Open Dialog ...
Page 325: ...Software Emulator 5 25 Code Development Tools Figure 5 25 EPROM Programming Dialog ...
Page 331: ...Software Emulator 5 31 Code Development Tools Figure 5 31 Context Sensitive Help System ...
Page 368: ...5 68 ...
Page 394: ...7 12 ...
Page 402: ...A 8 ...
Page 412: ...Packaging B 10 ...