You are on page 1of 1

EEEB2044 / EEEB373 Microprocessor Systems

Semester 1, 2020/21

Tutorial 1 - Answers

1) Convert the following binary, octal, and b) 010000012 – 000100012 = 010000012


hexadecimal numbers to their decimal + 111011112 = 1 001100002
equivalents: (N OV Z DC C = 00011)
a) 10100101002 - 66010 c) 100000012 - 001000002 = 100000012
b) 1010101102 - 34210 + 111000002 = 1 011000012
c) 14358 - 79710 (N OV Z DC C = 01001)
d) 5678 - 37510
e) 120016 - 460810 9) What range of integers can be represented
f) ABE016 - 4400010 by the 14-bit two’s complement number
system?
2) Convert the following decimal numbers to -(2n-1) to +(2n-1-1) = -8192 to +8191
their binary, octal, and hexadecimal
equivalents: 10) What range of integers can be represented
a) 418510 - 105916, 101318, by the 12-bit two’s complement number
10000010110012 system?
b) 727110 – 1C6716, 161478, -(2n-1) to +(2n-1-1) = -2048 to +2047
11100011001112
11) Perform the following arithmetic
3) Convert the following binary numbers to operations:
their octal and hexadecimal equivalents: a) 12347 + ABE116 – 1156 + BABA15 =
a) 1010001101102 – A3616, 50668 466 + 44001 – 47 + 39550 = 83970 =
b) 10011011101012 – 137516, 115658 2440028
b) B’11000101’ + H’278’ – O’345’ +
4) Convert the following hexadecimal D’123’ = 0xC5 + 0x278 – 0xE5 + 7B
numbers to their binary equivalents: = 0x2D3
a) ADAA16 – 1010 1101 1010 10102 c) 12410 + 0x37 – 248 + AAA16 – 2768 =
b) BACA16 – 1011 1010 1100 10102 124 + 55 – 20 + 2730 – 190 = 2699 =
412445
5) Convert the following numbers to their
binary equivalents: 12) Convert the following numbers to their
a) 25136 – 10011011012 BCD equivalents:
b) 34569 – 1010000000102 a) 12347 + ABE116 – 1156 + BABA15 =
c) ABC13 – 111001101012 466 + 44001 – 47 + 39550 = 83970 =
d) 76712 – 100001111112 1000 0011 1001 0111 0000BCD
b) 12410 + 0x37 – 248 + AAA16 = 124 +
6) Compute the sums of the following pairs 55 – 20 + 2730 = 2889 = 0010 1000
of binary numbers: 1000 1001BCD
a) 1001000102 and 1011011002 =
10100011102 13) What binary data will be sent through your
b) 1100102 and 1000112 = 10101012 modem when you send message “Mee
Likes Udang” to your very special friend
7) Negate the following 8-bit binary using 7-bit ASCII code?
numbers: *Note: There are spaces between “ee” and
a) 001000012 – 110111112 “Li”, and between “es” and “Ud”. Quotation
b) 011000012 – 100111112 marks (“ ”) are not included.
c) 100111002 – 011001002
M e e L i k e s
4D 65 65 20 4C 69 6B 65 73
8) Use 8-bit two’s complement addition to
perform the indicated operations: U d a n g
a) 010010112 – 000101112 = 010010112 20 55 64 61 6E 67
+ 111010012 = 1 001101002
(N OV Z DC C = 00011)

You might also like