Intel 8088

  • Uploaded by: Neel Chakraborty
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Intel 8088 as PDF for free.

More details

  • Words: 1,264
  • Pages: 23
•Released in the year 1979 •A version of Intel 8086 with an 8 bit data bus •Used in the original IBM PC

• Compatible to 8080/8085/8086 • 8-bit data bus width • Frequency: 5-10 MHz • Supports Intel 8087 numeric coprocessor

•Memory •Interrupts •I/O ports •Registers •Instruction set •Addressing Modes

MAXIMUM MODE GND

1

40

Vcc

A14

A15

A13

A16,S3

A12

A17,S4

A11

A18,S5

A10

A19,S6

A9

high

A8

MN,/MX

AD7

MINIMUM MODE

/SS0

/RD

AD6

/RQ,/GT0

HOLD

/RQ,/GT1

HLDA

AD4

/LOCK

/WR

AD3

/S2

IO/M

AD2

/S1

DT/R

AD1

/S0

/DEN

AD0

QS0

ALE

NMI

QS1

/INTA

8088

AD5

INTR

/TEST

CLK GND

READY 20

21

RESET

Pin configuration of Intel 8088

Internal organization of 8088

MEMORY • The 8088 uses the same segmented memory addressing as the 8086: – Can address 64KB of memory directly – Address more than 64 KB of memory • the CPU has to break the update into a few parts - update up to 64 KB of memory, change segment register, update another block of memory, update segment register again, and so on.

MEMORY contd… • Program memory – – program can be located anywhere in memory. – Jump and call instructions can be used within 64 KB to 1 MB of memory.

• Data memory – – the processor can access data in any one out of 4 available segments • Data • Code • Stack • Extra segments.

• Stack memory – can be placed anywhere in memory.

vINTERRUPTS The processor has the following interrupts: • INTR – maskable hardware interrupt – enabled/disabled using STI/CLI instructions or using more complicated method of updating the FLAGS register with the help of the POPF instruction – Interrupt processing routine should return with the IRET instruction

• NMI – non-maskable interrupt – processed in the same way as the INTR interrupt

vINTERRUPTS contd… • Software interrupts can be caused by: – INT instruction - breakpoint interrupt. This is a type 3 interrupt. – INT instruction - any one interrupt from available 256 interrupts. – INTO instruction - interrupt on overflow – Single-step interrupt - generated if the TF flag is set. This is a type 1 interrupt. When the CPU processes this interrupt it clears TF flag before calling the interrupt processing routine. – Processor exceptions: divide error (type 0), unused opcode (type 6) and escape opcode (type 7).

• Software interrupt processing is the same as

vI/O ports • 65536 8-bit I/O ports • can be also addressed as 32768 16bit I/O ports • Values in the I/O space are accessed with IN and OUT instructions

vREGISTERS The processor uses 4 segment registers:

• Code segment (CS) – 16-bit register – The processor uses CS segment for all accesses to instructions referenced by instruction pointer (IP) register. – CS register cannot be changed directly – The CS register is automatically updated during far jump, far call and far return instructions

• Stack segment (SS) – 16-bit register – the processor assumes that all data referenced by the stack pointer (SP) and base pointer (BP) registers is located in the stack segment – SS register can be changed directly using POP

vREGISTERS contd… • Data segment (DS) – a 16-bit register – the processor assumes that all data referenced by general registers (AX, BX, CX, DX) and index register (SI, DI) is located in the data segment – DS register can be changed directly using POP and LDS instructions.

• Extra segment (ES) – a 16-bit register – the processor assumes that the DI register references the ES segment in string manipulation instructions – ES register can be changed directly using POP and LES instructions.

v REGISTERS contd… The general registers are: • Accumulator – consists of two 8-bit registers AL and AH which can be combined together and used as a 16-bit register AX. – AL in this case contains the low-order byte of the word – AH contains the high-order byte – used for I/O operations and string manipulation. • Base register – consists of two 8-bit registers BL and BH, which can be combined together and used as a 16-bit register BX – BL in this case contains the low-order byte of the word –

vREGISTERS contd… • Count register – consists of two 8-bit registers CL and CH, which can be combined together and used as a 16-bit register CX – CL register contains the low-order byte of the word – CH contains the high-order byte – used as a counter in string manipulation and shift/rotate instructions

• Data register – consists of two 8-bit registers DL and DH, which can be combined together and used as a 16-bit register DX – DL register contains the low-order byte of the word – DH contains the high-order byte

vREGISTERS contd… The following registers are both general and index registers:

• Stack Pointer (SP) – a 16-bit register pointing to program stack.

• Base Pointer (BP) – a 16-bit register pointing to data in stack segment. BP register is usually used for based, based indexed or register indirect addressing.

• Source Index (SI) – a 16-bit register. SI is used for indexed, based indexed and register indirect addressing, as well as a source data address in string manipulation instructions.

• Destination Index (DI) – a 16-bit register. DI is used for indexed, based

vREGISTERS contd… • Instruction Pointer (IP) is a 16-bit register. • Flags – a 16-bit register containing nine 1-bit flags: i. Overflow Flag (OF) ii. Direction Flag (DF) iii. Interrupt-enable Flag (IF) iv. Single-step Flag (TF) v. Sign Flag (SF) vi. Zero Flag (ZF) vii. Auxiliary carry Flag (AF) viii.Parity Flag (PF) ix. Carry Flag (CF)

vInstruction Set The 8088 instruction set consists of the following instructions: • Data moving instructions. • Arithmetic - add, subtract, increment, decrement, convert byte/word and compare. • Logic - AND, OR, exclusive OR, shift/rotate and test. • String manipulation - load, store, move, compare and scan for byte/word. • Control transfer - conditional, unconditional, call subroutine and return from subroutine. • Input/Output instructions. • Other - setting/clearing flag bits, stack operations, software interrupts, etc.

vADDRESSING MODES • Implied - the data value/data address is implicitly associated with the instruction.

• Register - references the data in a register or in a register pair.

• Immediate - the data is provided in the instruction. • Direct - the instruction operand specifies the memory address where data is located.

• Register indirect - instruction specifies a register containing an address, where data is located. This addressing mode works with SI, DI, BX and BP registers.

• Based - 8-bit or 16-bit instruction operand is added to the contents of a base register (BX or BP), the resulting value is a pointer to location where data resides.

vADDRESSING MODES

contd…

• Indexed - 8-bit or 16-bit instruction operand is added to the contents of an index register (SI or DI), the resulting value is a pointer to location where data resides. • Based Indexed - the contents of a base register (BX or BP) is added to the contents of an index register (SI or DI), the resulting value is a pointer to location where data resides. • Based Indexed with displacement - 8-bit or 16-bit instruction operand is added to the contents of a base

• • • • • •

Based on Intel 8086 Address up to 1MB of memory 16 bit registers and 8-bit data bus Cost is low Runs slower Descendants of the 8088 include the 80188, 80186, 80286, 80386, and 80486

THANK YOU!!

Related Documents

Intel 8088
May 2020 16
8088
September 2019 17
Ds 8088
April 2020 10
Intel
November 2019 41
Intel
November 2019 47
Intel
May 2020 26

More Documents from ""