Beruflich Dokumente
Kultur Dokumente
Historical Background.
Memory Unit
ALU
Microprocessor based PC system
Memory Input /
Microprocessor
output
Bus
Advantages:
Processing speed.
Increasing memory.
Expandable memory.
Versatility.
Decreasing cost.
Decreasing size.
Features of 8086
Refer Software demo
Register Organisation
General Purpose Registers
Segment Registers
Flag Registers
ax ah al
bx bh bl
cx ch cl
dx dh dl
Segment Registers
Opcode
Example:
1) End
One byte instruction register mode
Opcode Register
Example:
1) Mov ax,bx
Register to/from memory with no
displacement
Example:
1) Mov al,[10008 H]
Register to/from memory with
displacement 8 bit
Example:
Example:
Example:
1) Mov al,10 h
Immediate operand to register 16 bit
Low High
operand operand
Example:
1) Mov ax,1000 h
Immediate operand to memory with
16 bit displacement
Low High
Low Disp High Disp
operand operand
Example:
00 No displacement
11 Register field
Register field assignment
Reg Segment Reg
000 Ax 000 Al 00 ES
001 Cx 001 Cl 01 CS
010 Dx 010 Dl 10 SS
011 Bx 011 Bl 11 DS
100 Sp 100 Ah
101 Bp 101 Ch
110 Si 110 Dh
111 Di 111 Bh
R/M field
R/M Operand address
0 1 0 1 0 0 1 1
1 1 0 0 0 0 0 1
Reg Reg
to to Reg Reg Reg Reg Reg Reg
Reg Reg = Ax = Ax = Ax = Cx = Cx = Cx
Mov [Bx], dl
1 0 0 0 1 0 1 0
0 0 0 1 0 0 1 1
mem mem
Reg Reg Reg Reg Reg Reg
= Dl = Dl = Dl = Bx = Bx = Bx
Mov 56 H [SI], Bh
1 0 0 0 1 0 0 0
0 1 1 1 1 1 1 0
Mem, Mem,
1 byte 1 byte Reg = Reg = Reg = Reg = Reg = Reg =
disp disp Bh Bh Bh SI SI SI
0 1 0 1 0 1 1 0
0 0 0 1 1 1 1 0
0 0 1 1 0 1 0 0
0 0 0 1 0 0 1 0
CS Reg CS Reg
1 0 0 0 1 0 0 0
0 0 0 0 1 1 1 1
reg 1 Al Al Al bl bl bl
to
reg 1
Mov Ax, DS : [Bp+SI]
DS 1 DS
0 0 ax ax ax 0 1 0
bp bp bp si si si