Implementation Details
5-48
5.10 Implementation Details
This section is C– – specific.
5.10.1 Comparisons
We use the CMP instruction for both signed and unsigned comparisons. The
two integers a and b to be compared are in A0 and A0~.
CMP A0,A0~ : A0 contains a, A0~ contains b
A0
A0~
ACO
AZ
ANEG
5
0
1
0
0
5
1
1
0
0
0
5
0
0
1
1
5
0
0
1
0
0
1
1
0
5
5
1
1
0
FFFF
0
1
0
1
0
FFFF
0
0
0
FFFF
FFFF
1
1
0
FFFF
FFFE
1
0
0
FFFE
FFFF
0
0
1
-
Signed comparison of a and b. (a is in A0, b is in A0~)
Assembly
Test
Condition
_eq
a = b
AEQ
_ne
a != b
!AEQ
_lt
a < b
ALZ
_le
a <= b
!AGT
_ge
a >= b
!ALZ
_gt
a > b
AGT
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 ...