Question

1. Initialize CS=OD03 and IP = 0000 2. Assemble the following set of instructions at CS:IP Step-la: PUSH DS Step-1b: MOV AX,
0 0
Add a comment Improve this question Transcribed image text
Answer #1

cs and ip intialise the address from where the program should be started

Instruction A: pushes the value present in the ds register to stack segment

Instruction B: AX register is stored with value 00

Instruction C: the value stored in ax register is pushed to stack segment

Instruction D: cx register is loaded with value 0005

Instruction E: dx register is loaded with 0000

Instruction F: NOP means no operation,used to create some time delay

Instruction G: DX=DX+1 implies dx=0+1=1

Instruction H: jumps to the address 000B , loop function jumps to the given address and reduces cx value by 1(dec cx) ,implies it produces 5 iterations as cx=5

Instruction I: RET function returns the executing unit to the next instruction present after CALL / INTERRUPT function,whose address value was previously pushed into stack segment (pop function  is used to retrieve the adresss)

Add a comment
Know the answer?
Add Answer to:
1. Initialize CS=OD03 and IP = 0000 2. Assemble the following set of instructions at CS:IP...
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
  • Need help on Assembly language 1.Solve the following conditions: A. Suppose AL contains 11001011 and CF...

    Need help on Assembly language 1.Solve the following conditions: A. Suppose AL contains 11001011 and CF = 1.    Give the new contents of AL after each of the following instructions is executed.    Assume the above initial conditions for each part of this question. a. SHL AL,1 b. SHR AL,1 c. ROL AL,2 d. ROR AL,3 e. SAR AL,2 f. RCL AL,1 g. RCR AL,3 B. Suppose EAX contain ABCDH.    Show the contents of BX and CX after...

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
ADVERTISEMENT