Documente Academic
Documente Profesional
Documente Cultură
4. List the 8-bit registers, 16-bit registers, 32-bit registers, 64-bit registers and segment
registers that are used in register data-addressing mode.
The 8-bit registers used with register addressing are
AH, AL, BH, BL, CH, CL, DH, and DL
• The 16-bit registers used with register addressing are
AX, BX, CX, DX, SP, BP, SI, and DI
• The 16-bit segment register used with register addressing are
CS, ES, DS, SS, FS, and GS
• In the 80386 and above, the extended 32-bit registers used with register addressing are
EAX, EBX, ECX, EDX, ESP, EBP, EDI, and ESI
• In the 64-bit mode of the Pentium 4, the registers used with register addressing are
RAX, RBX, RCX, RDX, RSP, RBP, RDI, RSI, and R8 through R15
5. List the 16-bit registers and 32-bit registers that are used in the indirect-data
addressing mode.
16 bit register used in the indirect-data addressing mode are
BX, DI, SI and BP
32 bit register used in the indirect-data addressing mode are
EAX, EBX, ECX, EDX, EDI, ESI and EBP
6. Sketch the operation for the following instruction indicating the contents of registers,
assuming that the source content is A9H for byte movement operations and B8C7H for
word movement operations:
(a) MOV AH, BL
AH AL
AX A9H
A9H
BX A9H
BL
(b) MOV R8B, CL
R8 R8B (8bits)
A9H
A9H
CL
CX A9H
(c) MOV CH, CL
CH CL
CX A9H A9H
A9H
DX
B8H C7H
DH DL
R10
B8C7H
B8C7H
SP B8C7H
(f) MOV BP, BX
BH BL
BP
B8C7H
7. Sketch the operation for the following instruction indicating the content of destination
register:
(a) MOV DX,4563H
DH DL
DX 4563H
45H 63H
(b) MOV AX, 32
AH AL
AX 00H 20H 0020H
R15 00004563H
00004563H
BH BL
Physical address (real memory location) = start address + offset = 10000H+1059H = 11059H
AH AL
1059H 11059H
+
10000H
DS*10H
Physical address (real memory location) = start address + offset = 10000H+0100H = 10100H
CH CL 4AH 10101H
CX 4AH C0H 4AC0H C0H 10100H
4AH C0H
DS*10 10000H
Physical address (real memory location) = start address + offset = 20000H+1000H = 21000H
DH DL 4AH 21001H
20000H
SS*10
AH AL
DS*10 10000H
AH AL 4AH 10351H
4AH C0H
AX C0H 10350H
AH AL
AX 3DH 3DH 3DH 10750H