CS401 Assignment 1 ...

Share:
Clear all

# [Solved] CS401 Assignment 1 Solution & Discussion Spring 2020

Joined: 2 years ago
Posts: 2540
22/05/2020 1:58 am

CS401 Computer Architecture and Assembly Language Programming Assignment 1 Solution & Discussion Spring 2020

Total marks = 20

June 1, 2020

Q 1. Calculate the effective address for the following set of values. (5)
Code Segment = 6032h
BX = 3060h
DI = 4001h
Offset = 0470h

Q 2. Find the physical Address, if segment address is FF01H and offset is FF02H. (7)

Q 3. Calculate the offset when the physical address is 003Ch and the contents of segment
register are 003Ah. (8)

---------------------
WhatsApp Groups Subject wise #QueryVU

Topic Tags
Joined: 2 years ago
Posts: 2540
22/05/2020 2:00 am

CS401 Computer Architecture and Assembly Language Programming Assignment 1 Solution & Discussion Spring 2020

Solution Idea CS401:

Q 1. Calculate the effective address for the following set of values. (5)
Code Segment = 6032h
BX = 3060h
DI = 4001h
Offset = 0470h

Solution:

CS = 5032h
BX = 3060h
DI = 4001h
Offset = 0470h
Here memory access under consideration is [CS:BX+DI+Offset]
Then the Effective address = BX+DI+Offset
= 3060h + 4001h + 0470h

Q 2. Find the physical Address, if segment address is FF01H and offset is FF02H. (7)

Solution:

= (FF01h * 10) + FF02h
= FF010h + FF02h

Q 3. Calculate the offset when the physical address is 003Ch and the contents of segment

Solution:

register are 003Ah. (8)
Segment Register = 003Ah
Offset = ?
Offset = Physical Address - Segment Register
Offset = 003Ch – 003Ah
Offset = 0002h

---------------------
WhatsApp Groups Subject wise #QueryVU

Joined: 2 years ago
Posts: 2540
01/06/2020 5:48 am

CS401 Computer Architecture and Assembly Language Programming Assignment 1 Solution & Discussion Spring 2020

CS401 another Solution idea: