0% found this document useful (0 votes)
58 views5 pages

Assignment 1 Solution

Cse331 Given the register contents, answer the following: [5+5] a. what physical address will the next instruction be fetched from ? Hints: instructions are located in code segment b. What is the physical address for the top of the stack? Hints: current value of stack pointer refers to the top of the stack segment

Uploaded by

nayeem hossen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views5 pages

Assignment 1 Solution

Cse331 Given the register contents, answer the following: [5+5] a. what physical address will the next instruction be fetched from ? Hints: instructions are located in code segment b. What is the physical address for the top of the stack? Hints: current value of stack pointer refers to the top of the stack segment

Uploaded by

nayeem hossen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

CSE331(Summer 2021)

Assignment#1
Answer to the question no-2

Write the 8086 instruction which will perform the indicated operation

Solution:

ORG 100H

a. MOV BL, AL

b. MOV CL, 43H

c. ADD CX, 1

d. MOV BP, SP

e. ADD DL, 07H

f. MUL BL

g. MOV [245AH], AX

h. SUB SP, 1

i.ROL AL, 1

j. MOV [BX], DL

k. AND BL, 11110000B

l. OR AX, 1000 0000 0000 0000B

m. XOR BL, 00001111B

RET
Answer to the question no-3

If 8086 data segment register contains 7000H, write the instruction that will copy the contents of
DL to address 7482CH

Solution:

ORG 100H

MOV [7482C], DL

RET

Here 7000H which 4 bits and it will add the IP address 482C to get the physical address
7482CH.Then it will copy the content into DL.

You might also like