HW - 3 Name: EE390

advertisement
HW - 3
EE390
Name:
ID No:
1) Assume registers AX, BX, and DI are all initialized to 0000H and that all the affected
storage locations in data memory have been cleared. Determine the location and value of
the destination operand as the following instructions are executed
MOV AX, 0110H
MOV DI, AX
MOV BL, AL
MOV [0100H], AX
MOV [DI]+4, AX
2) Assume that the state of 8088’s registers and memory initially are as follows:
(AX)=0000H
(BX)=0010H
(CX)=0105H
(DX)=1111H
(SI)=0100H
(DI)=0200H
(CF)=0
(DS:100H)=EFH
(DS:101H)=B2H
(DS:102H)=44H
(DS:103H)=BAH
(DS:104H)=CAH
(DS:105H)=DAH
(DS:200H)=AAH
(DS:201H)=DAH
(DS:202H)=ABH
(DS:203H)=CEH
(DS:204H)=D9H
(DS:205H)=E5H
Write an efficient sequence of instructions to add content of memory locations
DS:100H through Ds:105HW to memory locations starting at DS:200H and show the
results of executing these instructions.
Download