
SUB A,[R1R0]
Machine code
Description
Subtract data memory contents from accumulator
0 0 0 0 1 0 1 1
The contents of the data memory addressed by the register pair “R1,R0” is
subtracted from the accumulator. Carry is set if a borrow does not take
place in subtraction; otherwise carry is cleared.
ACC
←
ACC+M(R1,R0)+1
Operation
TIMER OFF
Machine code
Description
Set timer stop counting
0 0 1 1 1 0 0 1
The timer stops counting, when the “TIME R OFF” instruction is executed.
TIMER ON
Machine code
Description
Set timer start counting
0 0 1 1 1 0 0 0
The timer starts counting, when the “TIME R ON” instruction is executed.
TIMER XXH
Machine code
Description
Operation
Set immediate data to timer counter
0 1 0 0 0 1 1 1 d d d d d d d d
The 8-bit data specified by the code is loaded to the timer counter.
TIME R
←
XXH
XOR A,XH
Machine code
Description
Logical XOR immediate data to accumulator
0 1 0 0 0 0 1 1 0 0 0 0 d d d d
Data in the accumulator is E xclusive-ORed with the immediate data speci-
fied by the code.
ACC
←
ACC “XOR” XH
Operation
XOR A,[R1R0]
Machine code
Description
Logical XOR accumulator with data memory
0 0 0 1 1 0 1 1
Data in the accumulator is E xclusive-ORed with the data memory ad-
dressed by the register pair “R1,R0”.
ACC
←
ACC “XOR” M(R1,R0)
Operation
XOR [R1R0],A
Machine code
Description
Logical XOR data memory with accumulator
0 0 0 1 1 1 1 0
Data in the data memory addressed by the register pair “R1,R0” is logi-
cally E xclusive-ORed with the accumulator.
M(R1,R0)
←
M(R1,R0) “XOR” ACC
Operation
HTG1390
Preliminary
27
17th Nov ’98