Sharp MZ-700 Series Owner's Manual page 170

Personal computer
Hide thumbs Also See for MZ-700 Series:
Table of Contents

Advertisement

Mnemonic
Symbolic
operation
Op-code
Input and output group
IN A, (n)
IN r, ( C )
INI
INIR
IND
INDR
A — ( n )
r — ( C )
( H L ) — ( C )
B—B — 1
HL—HL + 1
( H L ) — ( C )
B—B —1
HL—HL + 1
Repeat until B = 0
( H L ) — ( C )
B — B — 1
HL—HL — 1
( H L ) — ( C )
B — B - 1
HL—HL —1
Repeat until B = 0
11 011 011
n
— •
11 101 101
01
r
000
11 101 101
10 100 010
11 101 101
10 110 010
11 101 101
10 101 010
11 101 101
10 111 010
Mnemonic
Symbolic
operation
Op-code
OUT (n), A
OUT (C), r
OUTI
OTIR
OUTD
OTDR
( n ) — A
CC)—r
( C ) - ( H L )
B — B - 1
H L — H L + 1
( C ) — ( H L )
B — B - 1
HL—HL + 1
Repeat until B = 0
CC)—(HL)
B — B - 1
H L — H L - 1
( C ) — ( H L )
B — B - 1
H L — H L - 1
Repeat until B = 0
11 010 011
n
— < •
11 101 101
01
r
001
11 101 101
10 100 011
11 101 101
10 110 011
11 101 101
10 101 011
11 101 101
10 111 011
(Note) The meanings of symbols used in the above table are as follows.
r, r'
Register
dd, ss
Register pair
dd
Register pair
PP
Register
000
B
00
B C
00
B C
00
B C
001
C
01
D E
01
D E
01
D E
010
D
10
H L
10
H L
10
I X
011
E
11
S P
11
A F
11
S P
100
H
101
L
111
A
rr
Register pair
b
Bit set
cc
Condition
t
p
00
B C
000
0
000
N Z
non zero
000
00 H
01
D E
001
1
001
z
zero
001
08 H
10
I Y
010
2
010
N C
non carry
010
10 H
11
S
P
011
3
011
C
carry
011
18 H
100
4
100
P O
parity odd
100
20 H
A : AND operation
101
5
101
P E
parity even
101
28 H
V : OR operation
110
6
110
P
sign positive
110
30 H
© : Exclusive OR operation 1 1 1
7
111
M
sign negative
111
38 H
s: r, n, (HL), (IX + d), (IY + d)
m : r, (HL), (IX + d), (IY + d)
CY: Carry flip-flop
mb : Bit b or location m
(register pair)H: Upper 8 bits of register pair
(register pair)i_: Lower 8 bits of register pair
For op-codes ADC, SUB, SBC, AND, OR, XOR and CP, the bits in |
| replace |
| in the ADD set.
For op-code DEC, |
I replaces |
| in the INC set.
Similar operations apply to op-codes of the rotate and shift group and bit set, reset and test group.
163-

Advertisement

Table of Contents
loading

Table of Contents