Appendix 4 Instruction List
App. 4-8
(4) Comparison instruction
Unsigned
Compare
with Special
Relay
used
CMP(S1,S2) and applicable Flag SET
(S1, S2 is Word)
CMP(S1,S2) and applicable Flag SET
(S1, S2 is Double Word)
CMP(S1,S2) and applicable Flag SET
(S1, S2 is Nibble)
CMP(S1,S2) and applicable Flag SET
(S1, S2 is Byte)
Compares S1 data to S2 data word
by word, and saves its result in
Device (D) bit by bit from the lower
bit
( N
CMP(P), DCMP(P), CMP4(P), CMP8(P), TCMP(P) & DTCMP(P) Instructions all process the results of
Unsigned Compare. All the other Compare Instructions will perform Signed Compare.
CMP((S1+1,S1),(S2+1,S2))
:
CMP((S1+31,S1+30),(S2+31,S2+30))
CMP(S1,S2))
:
CMP(S1+15,S2+15)
Result:(D) ~ (D+15), 1 if identical