Rabbit 2000 Microprocessor
User's Manual
PREV NEXT INDEX



20. Instructions in Alphabetical Order With Binary Encoding

Spreadsheet Conventions

ALTD ("A" Column) Symbol Key
Flag
Description
f
ALTD selects alternate flags
fr
ALTD selects alternate flags and register
r
ALTD selects alternate register
s
ALTD operation is a special case

IOI and IOE ("I" Column) Symbol Key
Flag
Description
b
IOI and IOE affect source and destination
d
IOI and IOE affect destination
s
IOI and IOE affect source

Flag Register Key
S
Z
L/V1
C
Description
*
Sign flag affected
-
Sign flag not affected
*
Zero flag affected
-
Zero flag not affected
L
L/V flag contains logical check result
V
L/V flag contains arithmetic overflow result
0
L/V flag is cleared
*
L/V flag is affected
*
Carry flag is affected
-
Carry flag is not affected
0
Carry flag is cleared
1
Carry flag is set
1 The L/V (logical/overflow) flag serves a dual purpose--L/V is set to 1 for logical operations if any of the four most significant bits of the result are 1, and L/V is reset to 0 if all four of the most significant bits of the result are 0.

Symbols

Rabbit
Z180
Meaning
b
b
Bit select:
000 = bit 0, 001 = bit 1,
010 = bit 2, 011 = bit 3,
100 = bit 4, 101 = bit 5,
110 = bit 6, 111 = bit 7
cc
cc
Condition code select:
00 = NZ, 01 = Z,
10 = NC, 11 = C
d
d
7-bit (signed) displacement. Expressed in two's complement.
dd
ww
Word register select destination: 00 = BC, 01 = DE, 10 = HL, 11 = SP
dd'
Word register select alternate: 00 = BC', 01 = DE', 10 = HL'
e
j
8-bit (signed) displacement added to PC.
f
f
Condition code select:
000 = NZ (non zero), 001 = Z (zero),
010 = NC (non carry), 011 = C (carry),
100 = LZ1 (logical zero), 101 = LO2 (logical one),
110 = P (sign plus), 111 = M (sign minus)
m
m
MSB of a 16-bit constant.
mn
mn
16-bit constant.
n
n
8-bit constant or LSB of a 16-bit constant.
r, g
g, g'
Byte register select:
000 = B, 001 = C,
010 = D, 011 = E,
100 = H, 101 = L,
111 = A
ss
ww
Word register select (source): 00 = BC, 01 = DE, 10 = HL, 11 = SP
v
v
Restart address select:
010 = 0020h, 011 = 0030h,
100 = 0040h, 101 = 0050h,
111 = 0070h
xx
xx
Word register select: 00 = BC, 01 = DE, 10 = IX, 11 = SP
yy
yy
Word register select: 00 = BC, 01 = DE, 10 = IY, 11 = SP
zz
zz
Word register select: 00 = BC, 01 = DE, 10 = HL, 11 = AF
1 Logical zero if all four of the most significant bits of the result are 0.

2 Logical one if any of the four most significant bits of the result are 1.


Rabbit Semiconductor
http://www.rabbitsemiconductor.com
Voice: (530) 757-8400
FAX: (530) 757-8402
sales@rabbitsemiconductor.com
PREV NEXT INDEX