From WikiChip
8008 ISA - Intel
< intel‎ | mcs-8
Revision as of 20:18, 26 March 2016 by ChipIt (talk | contribs) (Listing)

8008 ISA
Developer Intel
Datapoint Corporation
Implementation 8008
Dev model proprietary
Design Von Neumann architecture
Data word size 8 bit
1 octets
2 nibbles
Instruction word size 8 bit
1 octets
Instructions 48
Introduction 1972
Version 1
Format register-register
Endianness bi-endian
Registers 0
GPRs 7 (scratchpad)
ISAsBy CompanyBy InstBy Data

The 8008 ISA (or MCS-8 ISA) was an instruction set architecture introduced by Intel in 1972 and was used in the 8008 and 8008-1 microprocessors.

This ISA has an 8-bit data and address bus. This architecture included seven 8-bit registers, 48 instructions, and interrupt capability.

Registers

The 8008 had seven scratchpad registers. A few of them had additional capabilities - A is used an an accumulator register. Registers H & L are high-order and low-order words of a 14-bit address.

Register Size Purpose
A 8 bit Accumulator
B 8 bit GP
C 8 bit GP
D 8 bit GP
E 8 bit GP
H 8 bit High-order word
L 8 bit Low-order word

ISA

Data on the 8008 is always stored in an 8-bit binary integer.

Data Word
D7 D6 D5 D4 D3 D2 D1 D0

Instructions can be made of 1-3 bytes depending on operation. Multi-byte instructions must be stored in successive order in memory. Typical operations involving register-register operations such as arithmetic and logic operations only require one byte and take the following form:

1-Byte Inst
D7 D6 D5 D4 D3 D2 D1 D0
OPCode

Instructions that involve an immediate value have 2 bytes. The first bite stores the opcode and the second byte stores the 8-bit value.

2-Byte Inst
D7 D6 D5 D4 D3 D2 D1 D0
D7 D6 D5 D4 D3 D2 D1 D0
OPCode
Imm Value

Instructions involving an address (such as CALL and JUMP) require a 14-bit address. This is done via a 3-byte instruction where the first byte is the opcode, the second byte is the low-order word, and the third byte is the high-order word. Note that the 2 MSBs on the high-order word are don't cares.

3-Byte Inst
D7 D6 D5 D4 D3 D2 D1 D0
X7 X6 D5 D4 D3 D2 D1 D0
D7 D6 D5 D4 D3 D2 D1 D0
OPCode
High-Order Addrs
Low-Order Addrs

Listing

The 8008 ISA has 48 instructions broken a number of groups:

In 1972, Intel introduce their first set of mnemonics for their instructions. This original set consists of three characters which meant it could easily be encoded into a lookup table. A few years later, when they released their 8080 and its instruction set, they also revamped the 8008 mnemonics to match the 8080's ones more closely. The newer mnemonics resemble a primitive version of modern x86 mnemonics. Since 8008 programs can be found using bother mnemonics, both the "old" and the "new" mnemonics are listed below. Both mnemonics results in identical binary values.

8008 ISA
Mnemonic (old)
Index Register Instructions
Load instructions do not affect any flag. The Inc and Dec instructions affect all flags except carry.
LRdRsMOV Rd, Rs11 DDD SSS2Rd = Rs
LRdMMOV Rd, M11 DDD 1112Rd = Mem
LMRsMOV Rs, M11 111 SSS2Mem = Rs
LRdIMVI Rd, Imm00 DDD 1102
BB BBB BBB2
Rd = B7...B0
LMIMVI M, Imm00 111 1102
BB BBB BBB2
Mem = B7...B0
INRdINR Rd00 DDD 0002Rd = Rd + 1 (Rd ≠ A)
DCRdDCR Rd00 DDD 0012Rd = Rd - 1 (Rd ≠ A)
Accumulator Group Instructions
The result of an ALU instruction affect all flags. The rotation instructions only affect the carry flag.
Program Counter and Stack Control Instructions
JMPJMP01 XXX 1002
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
Unconditional Jump to B13...B0
JFCJNC01 000 0002
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If carry = 0, jump to B13...B0
JFZJNZ01 001 0002
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If result ≠ 0, jump to B13...B0
JFSJP01 010 0002
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If sign = 0 (positive), jump to B13...B0
JFPJPO01 011 0002
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If parity = 0 (odd), jump to B13...B0
JCJC01 100 0002
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If carry = 1, jump to B13...B0
JZJZ01 101 0002
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If result = 0, jump to B13...B0
JSJM01 110 0002
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If sign = 1 (negative), jump to B13...B0
JPJPE01 111 0002
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If parity = 1 (even), jump to B13...B0
CALCALL01 XXX 1102
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
Save current address onto the stack and jump to B13...B0
CFCCNC01 000 0102
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If carry = 0, save current address and jump to B13...B0
CFZCNZ01 001 0102
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If result ≠ 0, save current address and jump to B13...B0
CFSCP01 010 0102
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If sign = 0 (positive), save current address and jump to B13...B0
CFPCPO01 011 0102
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If parity = 0 (odd), save current address and jump to B13...B0
CCCC01 100 0102
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If carry = 1, save current address and jump to B13...B0
CZCZ01 101 0102
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If result = 0, save current address and jump to B13...B0
CSCM01 110 0102
B7 B6 B5 B4 B3 B2 B1 B0
X15 X14 B13 B12 B11 B10 B9 B8
If sign = 1 (negative), save current address and jump to B13...B0
CPCPE01 111 0102
B7B6 B5B4B3 B2B1B0
X15X14 B13B12B11 B10B9B8
If parity = 1 (even), save current address and jump to B13...B0
RETRET00 XXX 1112Unconditionally return, down one stack level
RFCRNC00 000 0112If carry = 0, return, down one stack level
RFZRNZ00 001 0112If result ≠ 0, return, down one stack level
RFSRP00 010 0112If sign = 0 (positive), return, down one stack level
RFPRPO00 011 0112If parity = 0 (odd), return, down one stack level
RCRC00 100 0112If carry = 1, return, down one stack level
RZRZ00 101 0112If result = 0, return, down one stack level
RSRM00 110 0112If sign = 1 (negative), return, down one stack level
RPRPE00 111 0112If parity = 1 (even), return, down one stack level
RSTRST00 AAA 1012Call the subroutine at memory AAA000 (up one stack level)
Input/Output Instructions
INPIN01 00M MM12A = PORT[MMM]
OUTOUT01 RRM MM12PORT[RRMMM] = A (RR ≠ 00)
Machine Instructions
HLTHLT00 000 00X2Enter STOPPED state; remain there until interupted
HLTHLT11 111 1112Enter STOPPED state; remain there until interupted

See also

Facts about "8008 ISA - Intel"
designerIntel + and Datapoint Corporation +
first launched1972 +
full page nameintel/mcs-8/isa +
implementation8008 - Intel +
instance ofinstruction set architecture +
instruction count48 +
instruction word size8 bit (1 octets) +
name8008 +
word size8 bit (1 octets, 2 nibbles) +