1 what is the largest positive integer that can be


Question #1:

1. What is the largest positive integer that can be represented as an unsigned integer on 8 bits. (Write your answer in binary and decimal).

2. What is the largest negative integer that can be represented as a signed-magnitude integer using 8 bits? (Write your answer in binary and decimal).

3. What is the largest positive integer that can be represented as a two's complement using 8 bits? (Write your answer in binary and decimal).

4. What is -20 expressed as an 8-bit binary number in 2's complement representation? :

5. Consider the 8-bit binary bit pattern 10010010. What is its decimal value if the bit pattern is interpreted as a two's complement integer?

6. Convert 2.625 into binary representaiton (sign, exponent, and mantissa fields), using IEEE 754 floating point number 32-bit notation.

Question #2

1. Write 3 lines of LC3 assembly code to do the following: R3 = R2 - R1.

2. Write the LC3 instructions corresponding to the following three series in hex:

x50E0

x1425

x16BD

3. Convert the following LC3 Assembly instructions to their binary representation by writing the 16-bit binary equivalent for the first six lines of code (the ones highlighted).

.ORIG 0x3000

LD R0, X

LD R1, Y

NOT R1, R1

AND R3, R0, R1

ADD R4, R3,#12

BRNZP DONE

ADD R4,R4,R4

DONE HALT

X .FILL x0012

Y .FILL x002A

Z .FILL x00F4

.END

a. Fill in the symbol table for the above program: (NOT COVERD YET THIS YEAR)

b. What value is in R3, in binary and hex, when you get to the HALT?

Solution Preview :

Prepared by a verified Expert
Business Management: 1 what is the largest positive integer that can be
Reference No:- TGS01553328

Now Priced at $25 (50% Discount)

Recommended (96%)

Rated (4.8/5)