UPI-41A/41AH/42/42AH USER’S MANUAL
JTO address
Jump If TEST 0 Is High
Opcode:
0 0 1 1
0 1 1 0
#
a
7
a
6
a
5
a
4
a
3
a
2
a
1
a
0
This is a 2-cycle instruction. Control passes to the specified address if the TEST 0 signal is
high (
e
1). Pin is sampled during SYNC.
(PC
0–7
)
w
addr
if T
0
e
1
Example:
JT0HI: JT0 53
;JUMP TO LOCATION 53 DEC
;IF T
0
e
1
JT1 address
Jump If TEST 1 Is High
Opcode:
0 1 0 1
0 1 1 0
#
a
7
a
6
a
5
a
4
a
3
a
2
a
1
a
0
This is a 2-cycle instruction. Control passes to the specified address if the TEST 1 signal is
high (
e
1). Pin is sampled during SYNC.
(PC
0–7
)
w
addr
if T
1
e
1
Example:
JT1HI: JT1 COUNT
;JUMP TO ‘COUNT’ ROUTINE
;IF T
1
e
1
JZ address
Jump If Accumulator Is Zero
Opcode:
1 1 0 0
0 1 1 0
#
a
7
a
6
a
5
a
4
a
3
a
2
a
1
a
0
This is a 2-cycle instruction. Control passes to the specified address if the accumulator con-
tains all zeros at the time this instruction is executed.
(PC
0–7
)
w
addr
if A
e
0
Example:
JACCO: JZ OA3H
;JUMP TO LOCATION ‘A3’ HEX
;IF ACC VALUE IS ZERO
MOV A,
Ý
data
Move Immediate Data to Accumulator
Opcode:
0 0 1 0
0 0 1 1
#
d
7
d
6
d
5
d
4
d
3
d
2
d
1
d
0
This is a 2-cycle instruction. The 8-bit value spedified by ‘data’ is loaded in the accumulator.
(A)
w
data
Example:
MOV A,
Ý
OA3H
;MOV ‘A3’ HEX TO ACC
MOV A,PSW
Move PSW Contents to Accumulator
Opcode:
1 1 0 0
0 1 1 1
The contents of the program status word are moved to the accumulator.
(A)
w
(PSW)
Example:
Jump to ‘RB1SET’ routine if bank switch, PSW bit 4, is set.
BSCHK: MOV A,PSW
;MOV PSW CONTENTS TO ACC
JB4 RB1 SET
;JUMP TO ‘RB1SET’ IF ACC
;BIT 4
e
1
41