Question

Assume that the DS register contains 0100 and regi
0 0
Add a comment Improve this question Transcribed image text
Answer #1

LDS : Load Pointer using DS, i.e Load the memory Double Word into word register and DS

Note: The word Double Word

Here LDS DI, [SI] , means using the SI address the data will be copied to DI as well as DS

SI contains 0020 and DS contains 0100 : We have to find out the Memory adress to access , for that we use :-
1. Shift DS content left wise by 1 bit i.e 0100 will become 1000
2. Add the content 1000 and SI we get 1000 + 0020 = 1020   

So we will start referring from address 1020 ,

From the Table we can see that Adress 1020 has 13 in the memory location.

From the Table we can see that Adress 1021 has 14 in the memory location.

From the Table we can see that Adress 1022 has 15 in the memory location.

From the Table we can see that Adress 1023 has 16 in the memory location.

So double word has to be copied into DS and DI

First DI then DS

DI will have 14 13

DS will have 16 15

Thanks, I hope it clarifies

Add a comment
Know the answer?
Add Answer to:
Assume that the DS register contains 0100 and register SI contains 0020. What is the result...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. Initialize register DS 0B4C and register CS 0A4C (Note: this is to make the DS and CS occupy d...

    please provide screenshots using dos debugger 1. Initialize register DS 0B4C and register CS 0A4C (Note: this is to make the DS and CS occupy different space in memory), and then initialize the memory DS: 100H-10H; DS: 101-00H; DS:120H = FFH; DS:121H-FFH; DS:1 30H = 08H; DS:131H = 00H; DS:150H = 02H; DS:151H= 00H ; DS:200H 30H; DS:201H 00H; DS:210H 40H; DS:211 00H; DS:220H 30H; DS:221H 00H 2. Verify the contents of memory have been uploaded correctly with a D...

  • Questions 6-10: Prior to execution of the instruction MOV CX,[1234H) - following are the information given...

    Questions 6-10: Prior to execution of the instruction MOV CX,[1234H) - following are the information given on the state of the processor CS = 0100H; DS=0200H; IP = 0000H; CX = 8B3AH Machine code for the above instruction=8B0E3412H; Answer the following questions 6-10 given below related to this instruction - 6. What is the content of the destination-operand prior to the instructions execution? a. 1234H b. 43211 c. 8B3AH d. 3A8BH e. Unknown 7. What is the content of the...

  • Assume that BX, SI, and DI contain the following value: (BX) = 0200H (SI) = 8124H...

    Assume that BX, SI, and DI contain the following value: (BX) = 0200H (SI) = 8124H (DI) =FF78H, (DS)=0000H The memory locations contain the following values: mem(1200H) = 82ABH mem(0200H) = 3CD6H mem(8324H) = 1AB4H and that label ALPHA has the following value with address 1000H: ALPHA 1200H For each of the following instructions (executed separately), specify the addressing mode used, write the expression for effective address EA in register transfer language, calculate it, and give the result of operation....

  • MULTIPLE CHOICE!! If register t0 contains 0 and t1 contains 4, what would the following instruction...

    MULTIPLE CHOICE!! If register t0 contains 0 and t1 contains 4, what would the following instruction do? (MIPS) sw $t0, 0($t1) A. Load 4 into register t0 B. Load 0 into register t1 C. Copy the content at memory address, 4, into register t0. D. Copy the contents at memory address, 0, into register t1. E. Copy the contents of register t0 into the memory address, 4. F. Copy the contents of register t1 into the memory address, 0.

  • 1. If DS-1000H, BX-0200H, SI-O2H, the contents of Memory units10200H 10205H are respectively 10H, 2AH, 3CH,...

    1. If DS-1000H, BX-0200H, SI-O2H, the contents of Memory units10200H 10205H are respectively 10H, 2AH, 3CH, 46H 59H、6BH. What is the contents of the AX Register after each of the following instructions is executed? (1)MOV AX, 0200H (3)MOV AX, BX (5)MOV AX, [BX+SI (2) MOV AX, [200H (4) MOV AX, 3BXI (6) MOV AX, 2[BX+SI] 2, If DS 1000H, ES-2000H, SS-3500H, SI-00AOH, DI-0024H, BX-01 00H, BP-0200H. The Offset Address of the variable named VAL in the data segment is 0030H...

  • 1. It is desired to load A[10] into $8, i.e., "lw $8, X($9)". Assume $9 contains...

    1. It is desired to load A[10] into $8, i.e., "lw $8, X($9)". Assume $9 contains the base address of array A. Address Memory content lw $8, X($9) 0x0001 0000 Ox0001 0004 0x0001 0008 Ox0001 000c 0x0001 00101 Ox0001 0014 0x0001 0018 Ox0001 001c 0x0001 00201 0x0001 0024 0x0001 0028 A[O] A[1] $9 contains the based address of array A (i.e., $9 = 0x0001 001c) (a) What is the memory address for A[10]? Answer in hexadecimal number. Hint: Remember that...

  • Q1. Assume that the registers have the following values (all in hex) and DS=311F, SS=560B, SI=130F,...

    Q1. Assume that the registers have the following values (all in hex) and DS=311F, SS=560B, SI=130F, DI=0405, BX=5011, AX=401D, CX=4500, and BP=195F. Calculate the physical address of the memory where the operand is stored and the contents of the memory locations in each of the following addressing examples. i. MOV [BP+12], AX ii. MOV [BX+SI+8], BX Q2. Find the IP, CS, and SP (locations and contents) after execution of the following instructions: i. 2000:015B FF 17 CALL FAR [BX] Initial...

  • Assume that the registers have the following values (all in hex) and that CS= 1000, DS...

    Assume that the registers have the following values (all in hex) and that CS= 1000, DS = 2000, SS=3000, SI=4000, DI = 5000, BX=6080, BP= 7000, AX=25FF, CX=8791, and DX=1299. Calculate the physical address of the memory where the operand is stored and the contents of the memory locations in each of the addressing examples. a) MOV [SI], AL b) MOV [SI+BX+8], AH c) MOV [BX]+300, DX Now Examine the status of the CF, PF, AF, ZF, and SF if...

  • can you show me how you get each one or fill the table? Given the following memory and register values as shown in Tables 1& 2 below: Determine the values of the A, B, X, Y, CCR & SP regis...

    can you show me how you get each one or fill the table? Given the following memory and register values as shown in Tables 1& 2 below: Determine the values of the A, B, X, Y, CCR & SP registers in Table 1 as the program is executed Show new values of memory content in Table 2 if the memory location content is affected. - NOTE: This is a continues program where instruction results affect the instruction that follows Leave...

  • PCSrc Add ALU Add result Shift left 2 Read register 1Read Read register 2 Write register Write da...

    PCSrc Add ALU Add result Shift left 2 Read register 1Read Read register 2 Write register Write data RegWrite Read ALU operation MemWrite data 1 MemtoReg Zero ALU ALUAddresS data Instruction Registers Read Read Instruction MI IMI memory WriteData data memory 16 Sign- MemRead extend 3, (4 points) For question#2, in the datapath as shown in Fig. 1, assume that one of the following control signals has a stuch-at-0 fault, meaning that the signal is always 0, regardless of its...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT