SNZ [m].i Skip if bit i of Data Memory is not 0
Description If bit i of the specified Data Memory is not 0, the following instruction is skipped. As this re
-
quires the insertion of a dummy instruction while the next instruction is fetched, it is a two
cycle instruction. If the result is 0 the program proceeds with the following instruction.
Operation
Skip if [m].i ¹ 0
Affected flag(s) None
SUB A,[m] Subtract Data Memory from ACC
Description The specified Data Memory is subtracted from the contents of the Accumulator. The result
is stored in the Accumulator. Note that if the result of subtraction is negative, the C flag will
be cleared to 0, otherwise if the result is positive or zero the C flag will be set to 1.
Operation
ACC ¬ ACC - [m]
Affected flag(s) OV, Z, AC, C
SUBM A,[m] Subtract Data Memory from ACC with result in Data Memory
Description The specified Data Memory is subtracted from the contents of the Accumulator. The result
is stored in the Data Memory. Note that if the result of subtraction is negative, the C flag will
be cleared to 0, otherwise if the result is positive or zero the C flag will be set to 1.
Operation
[m] ¬ ACC - [m]
Affected flag(s) OV, Z, AC, C
SUB A,x Subtract immediate data from ACC
Description The immediate data specified by the code is subtracted from the contents of the Accumu
-
lator. The result is stored in the Accumulator. Note that if the result of subtraction is nega-
tive, the C flag will be cleared to 0, otherwise if the result is positive or zero the C flag will be
set to 1.
Operation
ACC ¬ ACC - x
Affected flag(s) OV, Z, AC, C
SWAP [m] Swap nibbles of Data Memory
Description The low-order and high-order nibbles of the specified Data Memory are interchanged.
Operation
[m].3~[m].0 « [m].7 ~ [m].4
Affected flag(s) None
SWAPA [m] Swap nibbles of Data Memory with result in ACC
Description The low-order and high-order nibbles of the specified Data Memory are interchanged. The
result is stored in the Accumulator. The contents of the Data Memory remain unchanged.
Operation
ACC.3 ~ ACC.0 ¬ [m].7 ~ [m].4
ACC.7 ~ ACC.4 ¬ [m].3 ~ [m].0
Affected flag(s) None
62
Cost-Effective I/O Type MCU