Post#21 » Wed Jan 23, 2008 6:02 pm
Ik zat in groep A, het examen van Systemen De oefeningen.
1 Do the following conversions:
(a) (1210212) in basis 3 naar basis 9
(b) (110110) in basis 2 (6-bit 1's complement) = (?) in basis 2 excess 32
2 Calculate the sum
(1A)basis 12 + (13.3)basis 4 = (?)basis 2
3 We consider a floating point representation with a sign bit, followed by an excess-15 exponent of 5 bits, followed by a normalized 8-bit fraction with a hidden bit. The comma is located behind the first non-zero digit. Numbers that cannot be represented exactly are rounded to the nearest number that can. 0 is represented by the reserved bit pattern 000000000000000. The exponents 00000 en 111111 are reserved for special cases and cannot be used for normal number representations.
(a) What is the number of representable numbers?
(b) (-0.123)basis 4 to this floating-point representation
4 Construct a truth table for a function that calculates the sum of 3 - 1 bit input signals A1 ; A2 ; A3 . The output is the sum of the bits that consists S1,S2 .
vb A1 = 1 en A2 = 0 en A3 = 1 => S1 = 1 S2 = 0
Implement also with 2 8-to-1 multiplexers.
5. Write Pep/7 assembly code that reads a number between 1 and 26 as input, and prints the respective character to screen. For Ex if the input is 5 , the output should be E and if the input is 26 , the output should be Z.
6. What is the content of the accumulator (A) after execution of the following code?
LOADA d#0,i
LOADX Z,d
X : STOREX X,d
Y: ADDA X,d
SUB d#1,i
BRGT Y
STOP
Z : .WORD d#5
.END