100% found this document useful (1 vote)
612 views

Assignment 2

This document provides instructions for a computer organization and assembly language assignment. It is due on October 30th, 2019 and is worth 10 total marks. It contains 4 questions - the first asks to perform address computations and determine a physical address given segment and offset addresses, the second asks for the binary, unsigned decimal, and signed decimal values of a given hexadecimal number, the third asks to translate an arithmetic statement into assembly language, and the fourth asks to perform two binary operations - an addition and a subtraction in hexadecimal and binary. Late submissions will receive partial marks deductions and no submission will be accepted after two days past the due date.

Uploaded by

afx nadeem
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
100% found this document useful (1 vote)
612 views

Assignment 2

This document provides instructions for a computer organization and assembly language assignment. It is due on October 30th, 2019 and is worth 10 total marks. It contains 4 questions - the first asks to perform address computations and determine a physical address given segment and offset addresses, the second asks for the binary, unsigned decimal, and signed decimal values of a given hexadecimal number, the third asks to translate an arithmetic statement into assembly language, and the fourth asks to perform two binary operations - an addition and a subtraction in hexadecimal and binary. Late submissions will receive partial marks deductions and no submission will be accepted after two days past the due date.

Uploaded by

afx nadeem
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/ 1

Computer Organization & Assembly Language

Assignment-II

Due Date: 30-10-2019 Total Marks: 10

Program: BSCS

Instructions
1. Understanding of the problems is part of the assignments. So, no query please.
2. You will get Zero marks if found any type of cheating.
3. 25 % deduction of over marks on the one-day late submission after due date
4. 50 % deduction of over marks on the two-day late submission after due date
5. No submission after two days.

Question 1: [Marks: 6]

A memory location has a physical address 5BA00h. Compute

a. The offset address if the segment number is 51ACh. [1]

b. The segment number if the offset address is 4D10h? [1]

c. Determine the physical address of a memory location given by 70F6:1BC0h. [2]

Question 2: [Marks: 2]

What is the binary representation of D5B7h? Also calculate the unsigned and signed decimal
interpretation of this number.

Question 03: Using only basic arithmetic instructions, translate the given statement into assembly
language.
Assume A, B and C are word variables: [Marks: 2]
A = B + 2 – (C*2)

Question 04: Perform the following addition or subtraction: [Marks: 2]


a. FE02h + 1E01h
b. 10110100b – 10010111b

You might also like