Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

B01150019 HANAN ZAINAL ABIDIN

BIT1123 COMPUTER ORGANIZATION & ARCHITECTURE

TASK 1: B01150019
a) Hexadecimal number
= 1011 0000 0001 0001 0101 0000 0000 0001 100116

b) 16-bits sign-magnitude
Cannot be represented with 16 bits.

c) 32-bits sign-magnitude
Cannot be represented with 32 bits.

d) 16-bits 2s complement
Cannot be represented with 16 bits.

e) 32-bits 2s complement
Cannot be represented with 32 bits.

B01150019 HANAN ZAINAL ABIDIN


BIT1123 COMPUTER ORGANIZATION & ARCHITECTURE

TASK 2: The Opposite of B01150019


a) Hexadecimal number
= - 1011 0000 0001 0001 0101 0000 0000 0001 100116

b) 16-bits sign-magnitude
Cannot be represented with 16 bits.

c) 32-bits sign-magnitude
Cannot be represented with 32 bits.

d) 16-bits 2s complement
Cannot be represented with 16 bits.

e) 32-bits 2s complement
Cannot be represented with 32 bits.

B01150019 HANAN ZAINAL ABIDIN


BIT1123 COMPUTER ORGANIZATION & ARCHITECTURE

TASK 3: IEEE 754-2008 B01150019


a) Binary-32
Cannot be represented with 32 bits.

b) Binary-64
1011 0000 0001 0001 0101 0000 0000 0001 1001
1|011 0000 0001 | 0001 0101 0000 0000 0001 1001
s|
e
|
f
Sign bit (s)

: 1 = negative

Exponent

: 011 0000 000116 = 76910


e, 76910 - 102310 = -25410

Fraction

: 1.f = 1.0001 0101 0000 0000 0001 1001

Value

: 1.000101010000000000011001 * 2-254
:

B01150019 HANAN ZAINAL ABIDIN


BIT1123 COMPUTER ORGANIZATION & ARCHITECTURE

TASK 4: ASCII Codes HANAN ZAINAL ABIDIN & B01150019


a) HANAN ZAINAL ABIDIN
Char

Decimal

H
A
N
Z
I
L
B
D
spac
e

72
65
78
90
73
76
66
68
32

Binary
100
100
100
101
100
100
100
100
100

1000
0001
1110
1010
1001
1100
0010
0100
0000

Hexadeci
mal
48
41
4E
5A
49
4C
42
44
20

b) B01150019
Char

Decimal

B
A
N
Z
I
L
B
D
spac
e

72
65
78
90
73
76
66
68
32

Binary
100
100
100
101
100
100
100
100
100

1000
0001
1110
1010
1001
1100
0010
0100
0000

Hexadeci
mal
48
41
4E
5A
49
4C
42
44
20

B01150019 HANAN ZAINAL ABIDIN


BIT1123 COMPUTER ORGANIZATION & ARCHITECTURE

APPENDIX
2s complement = 1011 0000 0001 0001 0101 0000 0000 0001 1001
[Signed ve]
= negate 1011 0000 0001 0001 0101 0000 0000 0001 1001
Binary

= - 0100 1111 1110 1110 1010 1111 1111 1110 0110

You might also like