You are on page 1of 6

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 9 & 10 : CHAPTER 5


MEMORY
This module discusses the fundamental of Assembly Language

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


1. HAMMING CODE

Find out the coded word for the actual data below using the hamming code.

Actual Data : 10101010

Parity Bits :

Coded Data:

2017-2 3
2. HAMMING CODE (Error Correction)

Find out the Actual data for the Coded Word below using the hamming code. Correct it in case
there are any errors.

Coded Data :111110000010

Parity Bits :

Actual Data:

2017-2 4
3. ENDIANESS

For example, if a processor with an 8-bit data bus needs to store the 32-bit value
3A483BAC16
Show the value in memory address 0 as in big endian and little endian scheme?

Address Big endian Little endian


0 0 1 2 3 0 3 2 1 0

4 4 5 6 7 7 6 5 4
4

8 8 9 10 11 11 10 9 8
8

12 12 13 14 15 15 14 13 12
12

32 bit word Byte 32 bit word Byte

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


NOTES

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

You might also like