
CHAPTER 2
THE iAPX 88 ARCHITECTURE AND INSTRUCTIONS
INTRODUCTION
This chapter describes the programmer's architecture of the 8088 CPU. The pro- gramming model is presented first, including the memory and Ij 0 port organizations and the CPU registers. The addressing modes are described next, followed by an introduction to the instruction set and the iAPX 88 assembly language. The iAPX 88 instruction set reference pages that describe each instruc- tion in detail conclude the chapter.
iAPX 88 ARCHITECTURE
The iAPX 88 processor architecture com- prises a memory structure, a register structure, an instruction set, and a set of addressing modes. The 8088 CPU can access up to one million bytes of memory and up to 64K inputj output ports.
The 8088 has three register files:
1)data registers to hold intermediate results;
2)pointer and index registers to reference within specified portions of memory;
3)segment registers used to specify these por- tions of memory.
The 8088 has nine flags that are used to record the state of the processor and to con- trol its operations.
The 8088 instruction set and addressing modes are richer and more symmetric than the 8080. And the 8088 external interface, providing such things as interrupts, multip- rocessor synchronization, and resource shar- ing, exceeds the facilities provided in the 8080, the 8085, or the Z80®.
Memory Structure
The 8088 inputj output space and memory space are treated in parallel and are collec- tively called the memory structure. Code and data reside in the memory space while (non-
Z80 is a registered trademark of Zilog Corp.
Memory Space
The memory in aniAPX 88 system is a sequence of up to one million bytes (a
The
1)Current code segment
2)Current data segment
3)Current stack segment
4)Current extra segment
Each of these segments can be identified by placing the 16 most significant bits of the segment starting address into one of the four
An 8088 instruction can refer to bytes or words within a segment by using a
Input/Output Space
The 8088 Ij 0 space consists of 64K ports (a
SIze.