Tandy 1000 HX Technical Reference Manual page 193

Table of Contents

Advertisement

£
Instruction Set (cont)
l\3
Mnemonic
Data Moves (cont)
MOV PSW, A
M0VPA,@A
M0VP3 A, @ A
MOVX A, @ R
MOVX @ R, A
XCH A, Rr
XCH A, @ Rr
XCHDA,@Rr
Flags
CPLC
CPLFO
CPLF1
CLRC
CLRFO
CLRF1
Function
(PSW) —(A)
(PC0-PC7)—(A)
(A) —((PC))
(PC0-PC7)—(A)
(PCs-PCu) — 001
(A) —((PC))
(A) — ((Rr)); r = 0-1
( ( R r ) ) - ( A ) ; r = 0-1
(A)—* (Rr); r = 0-7
( A ) — ((Rr)); r = 0-1
(A0-A3)— ((Rr))
0
-((Rr))
3
;
r = 0-1
(C) —(C)
(FO)-(FO)
(F1) — (F1)
(C) — 0
(FO) — 0
(F1) — 0
Description
Moves the contents of the accumulator into the program status
word.
Moves the contents of the program memory location specified by
PCs-PC^ concatenated with the contents of the accumulator, into
the accumulator.
Moves the contents of the program memory location specified by
0011 (PCB-PCU, page 3 of program memory bank 0) and the
contents of the accumulator, into the accumulator.
Moves the contents of the external data memory location specified
by register Rr, into the accumulator.
Moves the contents of the accumulator into the external data
memory location specified by register Rr.
Exchanges the contents of the accumulator and register Rr.
Exchanges the contents of the accumulator and the contents of the
data memory location specified by bits 0-5 in register Rr.
Exchanges the contents of the lower 4 bits of the accumulator with
the contents of the lower 4 bits of the internal data memory location
specified by bits 0-5 in register Rr.
Takes the complement of the carry bit.
Takes the complement of flag 0.
Takes the complement of flag 1.
Clears the carry bit.
Clears flag 0.
Clears f l a g !
Hex
Code
D7
A3
E3
8n(4)
9n(4)
2n(4)
2n(4)
3n(4)
A7
95
B5
97
85
A5
»7
1
1
1
1
1
0
0
0
1
1
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
Operation Codi
D
5
0
1
1
0
0
1
1
1
1
0
1
0
0
1
»4
1
0
0
0
1
0
0
1
0
1
1
1
0
0
D3
0
0
0
0
0
1
0
0
0
0
0
0
0
0
t
D
2
1
0
0
0
0
r
0
0
1
1
1
1
1
1
»1
1
1
1
0
0
r
0
0
1
0
0
1
0
0
Do
1
1
1
r
r
r
r
r
1
1
1
1
1
1
Cycles
1
2
2
2
2
1
1
1
1
1
1
1
1
1
Bytes
1
1
1
1
1
1
1
1
1
1
1
1
1
1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents