BCN1043 Lab2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

BCN1043 : COMPUTER

ARCHITECTURE &
ORGANIZATION
-LAB MODULE-
Lab content prepared for BCN1043 : Computer
Architecture and Organization
Dr. Syafiq Fauzi Bin Kamarulzaman

Faculty of Computer System and Software Engineering, UMP 2017-2


BCN1043 : COMPUTER ARCHITECTURE &
ORGANIZATION
-LAB MODULE-

2 WEEK 2 : CHAPTER 2
NUMBER SYSTEM
This module discusses the fundamental of number system and
experience with conversion and representation.

Faculty of Computer System and Software Engineering, UMP 2017-2


2.1 Understanding the use for number system.

1
You are given an ASCII table, find out
the secret message inside this code.
44 72 2e 20 53 79 61 66 69 71 20 69 73 20 41 77 65 73 6f 6d 65
2e 20 48 65 20 69 73 20 74 68 65 20 6e 69 63 65 73 74 20 67 75
79 20 69 6e 20 74 68 65 20 77 6f 72 6c 64 2e 20 4e 6f 20 77 6f
6e 64 65 72 20 49 20 74 6f 6f 6b 20 68 69 73 20 63 6c 61 73 73
2e 20 20 0d 0a
Your Answer :

Dr. Syafiq is Awesome. He the nicest guy in the


world. No wonder I took his class.

Convert this message into hexadecimal codes and later in to


binary:
UMP is in the state of Pahang, Malaysia
Hexadecimal : 55 4d 50 20 69 73 20 69 6e 20 74 68 65 20 73 74 61 74 65 20 6f 66 20 50 61 68
61 6e 67 2c 20 4d 61 6c 61 79 73 69 61
Binary : 1010101 1001101 1010000 100000 110001 1110011 100000 1101001 1101110 100000 1110100 1101000
1100101 100000 1110011 111100 1100001 1110100 1100101 100000 1101111 1100110 100000 1010000
1100001 1101000 1100001 110110 1100111 101100 100000 1001101 1100001 1101100 110001 1111001
1110011 1101001 1100001

Faculty of Computer System and Software Engineering, UMP 2017-2 3


2.2 Complete the conversion table below.
Decimal Binary Octal Hexadecimal

76.529 1001100.1000…. 114.4 4C.8

1501.75 10111011101.110

3667.5898 111001010011.1001 7123.456 E53.9

1442.0977 10110100010.000 2642.0 5A2.190

Faculty of Computer System and Software Engineering, UMP 2017-2 4


2.3 Different Number representation for 8 bit system.

Signed
SignedMagnitude
Magnitude One’s Compliment Two’s
Two’sComplement
Compliment
One’s Compliment
19 11101101
00010011 11101100
-23 10010111-700010111 11101000 11101001

123
01111011 10000100 10000101
-9 10001001-700001001 1111 0111
01110110
-92 1101100 -701011100 00100011 18100100
36 00100100 11011011 1101 1100

64 01000000 10111111 11000000

Faculty of Computer System and Software Engineering, UMP 2017-2 5


2.4 Mathematical Operation on Different Number
Representation for 4 Bit System.
One’s Complement Two’s Complement

1161
' '
001 0101
1%9 1st THE

5
- 2 %% + ↳

¥
3

3
doll
+ 2 +
5

%%→ " toil 0111


7 + 1100=00 #
+
- 4
3

Faculty of Computer System and Software Engineering, UMP 2017-2 6


NOTES

Faculty of Computer System and Software Engineering, UMP 2017-2 7

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy