{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

MPS_HW 1_AY0910-S2

# MPS_HW 1_AY0910-S2 - how it will be stored into memory in...

This preview shows page 1. Sign up to view the full content.

HCMIU Micro-processing systems–AY1011-S2 Homework #1 Due Saturday, Mar 5 Q1. (10pts) Determine the decimal value of the following binary numbers in the indicated representations. Unsigned integer Signed integer (2's Complement) 01011010 10100101 11000011 Q1. (20pts) The first four bytes of a 1M x 8 main memory have the following hex values: EF, 12, 24, 05. If these bytes hold a 32-bit signed integer, what is its actual decimal value if: a. memory is big endian? b. memory is little endian? Q3. (15pts) The unsigned value 0xE4EF1609 is to be stored in memory as a 32-bit value at ddress 0x10003788. Using small segments of a byte-wide memory map, show
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: how it will be stored into memory in both a little-endian and big-endian system. Q4. (40pts) Write the code to implement the expression A = (B – D) * C + E on 3-, 2-, 1-, and 0-address machines. Do not rearrange the expression. In accordance with programming language practice, computing the expression should not change the value of its operands. Q5. (15pts) Suppose that a 4M x 16 main memory is built using 128K x 8 RAM chips and memory is word-addressable. a. How many RAM chips are necessary? b. How many RAM chips are there per memory word? c. How many address bits are needed for each RAM chip? d. How many address bits are needed for all of memory?...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online