100% found this document useful (2 votes)
2K views

Assignment-3 Ch3 Question 1-10: CL, DH, and DL

This document contains an assignment with questions about MOV instructions and CPU registers. It asks the student to identify what various MOV instructions accomplish, list the 8-bit, 16-bit, 32-bit, and 64-bit registers, identify valid and invalid MOV instructions, and select the appropriate MOV instruction to accomplish different register transfer tasks.

Uploaded by

Ritika
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
2K views

Assignment-3 Ch3 Question 1-10: CL, DH, and DL

This document contains an assignment with questions about MOV instructions and CPU registers. It asks the student to identify what various MOV instructions accomplish, list the 8-bit, 16-bit, 32-bit, and 64-bit registers, identify valid and invalid MOV instructions, and select the appropriate MOV instruction to accomplish different register transfer tasks.

Uploaded by

Ritika
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 3

ASSIGNMENT-3

Ch 3
Question 1-10
1. What do the following MOV instructions accomplish?

(a) MOV AX,BX


Ans. Copy the contents of register BX into register AX

(b) MOV BX,AX


Ans. Copy the contents of register AX into register BX

(c) MOV BL,CH


Ans. Copy the contents of register CH into register BL

(d) MOV ESP,EBP


Ans. Copy the contents of register EBP into register ESP

(e) MOV RAX,RCX


Ans. Copy the contents of register CS into register AX

2. List the 8-bit registers that are used for register addressing.
Ans. The 8-bit registers that are used for register addressing : AH, AL, BH, BL, CH,
CL, DH, and DL.

3. List the 16-bit registers that are used for register addressing.
Ans. The 16-bit registers used for register addressing are the AX, BX, CX, DX, SP,
BP, SI, and DI.

4. List the 32-bit registers that are used for register addressing in the 80386 through
the Core2
microprocessors.
Ans. EAX, EBX, ECX, EDX, ESP, EBP, EDI, and ESI

5. List the 64-bit registers available to the 64-bit mode of the Pentium 4 and Core2.
Ans. RAX, RBX, RCX, RDX, RSP, RBP, RSI, RDI and R8---R15

6. List the 16-bit segment registers used with register addressing by MOV, PUSH,
and POP.
Ans. CS, DS, ES, SS, FS, and GS

7. What is wrong with the MOV BL,CX instruction?


Ans. The MOV BL,CX instruction is wrong because the contents of CX are too big
for BL.
BL is of 8bits and CX is of 16 bits, so BL can’t store the content of CX.

8. What is wrong with the MOV DS,SS instruction?


Ans. The MOV DS, SS instruction is wrong because segment to segment transfer is
not allowed.

9. Select an instruction for each of the following tasks:

(a) copy EBX into EDX


Ans. MOV EDX, EBX

(b) copy BL into CL


Ans. MOV CL, BL

(c) copy SI into BX


Ans. MOV BX, SI

(d) copy DS into AX


Ans. MOV AX, DS

(e) copy AL into AH


Ans. MOV AH, AL

(f) copy R8 into R10


Ans. MOV R10, R8
10. Select an instruction for each of the following tasks:

(a) move 12H into AL


Ans. MOV AL,12H

(b) move 123AH into AX


Ans. MOV AX,123AH

(c) move 0CDH into CL


Ans. MOV CL,0CDH

(d) move 1000H into RAX


Ans. MOV RAX,1000H

(e) move 1200A2H into EBX


Ans. MOV EBX,1200A2H

You might also like