Share:
Notifications
Clear all

WhatsApp Groups Subject wise #QueryVU

Join Now

[Solved] CS401 Assignment 1 Solution & Discussion Spring 2020  

  RSS

admin
(@admin)
Admin
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

Deadline Date
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)

How is this website, please share your feedback through this link: https://forms.gle/mZ5rsd995RxU2gEZ7
---------------------
WhatsApp Groups Subject wise #QueryVU
Join Now


Quote
admin
(@admin)
Admin
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
Effective Address = ?
Here memory access under consideration is [CS:BX+DI+Offset]
Then the Effective address = BX+DI+Offset
= 3060h + 4001h + 0470h
Efffecctive Address = 74D1h

 

 

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

Solution:

Segment Address = FF01h
Offset Address = FF02h
Physical Address = ?
Physical Address = (Segment Address * 10) + Offset Address
= (FF01h * 10) + FF02h
= FF010h + FF02h
Physical Address = 10EF12h

 

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

Solution:

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

How is this website, please share your feedback through this link: https://forms.gle/mZ5rsd995RxU2gEZ7
---------------------
WhatsApp Groups Subject wise #QueryVU
Join Now


ReplyQuote
admin
(@admin)
Admin
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:

 

 

 

 

 

How is this website, please share your feedback through this link: https://forms.gle/mZ5rsd995RxU2gEZ7
---------------------
WhatsApp Groups Subject wise #QueryVU
Join Now


ReplyQuote
Share: