Professional Documents
Culture Documents
CSC 112.1-CS Computer Organization and Architecture Laboratory
CSC 112.1-CS Computer Organization and Architecture Laboratory
Assignment No. 1
Due: January 6, 2021 (Wednesday) at 11:55PM
Complete the 8051 assembly language program below by implementing the bubble sort
algorithm. The data to be sorted in ascending order is located at address 30H in the data
memory (RAM) and is 20 bytes long. The first part of the program below copies the data
to be sorted from the code memory (ROM) to address 30H in RAM. You can use the
simulation facility of the MCU 8051 IDE to test and simulate your completed program.
ORG 0000H
;
; ??? - complete this part of the program
;
; bubble sort in ascending order the copy of the data in
; the RAM here
;
; end of program
ENDLOOP: SJMP ENDLOOP ; infinite loop
END