Chapter_01-Introduction to The Microprocessor and Computer
Chapter_01-Introduction to The Microprocessor and Computer
SYSTEMS
The Intel Microprocessors
8086/8088, 80186/80188, 80286, 80386,
80486, Pentium, Pentium Pro Processor,
Pentium II, Pentium III, Pentium 4, and Core2
with 64-Bit Extensions
INTEL Pentium II
Introduced in 1997
It was also 32 bit µP
Execution steps:
AL 0011 1111
BH +1101 1101 (2’s complement)
AL 1 0001 1100
Chapter 1 — Introduction to the Microprocessor and Computer — 40
80386 Assembly Programming
SBB (Subtract with borrow)
SUB AL,BL ; AL = AL - BL – CF
MUL (Multiplication)
MUL BL ; AL x BL, result in AX
MUL BX ; AX x BX, result DX_AX
IMUL ; (signed number multiplication)
DIV (Division)
DIV BL ; Divide AX / BL, quotient = AL reminder in AH
DIV BX ; Divide AX / BX, quotient = AX reminder in DX
Shift Instructions
SHR BP,1 ; Shift BP one bit right
Arithmetic Shift
Copy of the old MSB is put in the MSB position
(the sign bit is copied into the MSB)
XCHG (Exchange)
XCHG AH,AL ; Swap AH and AL
MOV BH,38H
ADD BH,2FH
0011 1000
+ 0010 1111
0110 0111