You are to write an assembly language program for the MARIE ISA. The program will sort an array of integers in ascending order.
The general structure of the assembly language source code is illustrated in figure 1. Note that your code will precede the data area.
ORG 100
/Your program goes here
HALT
Addr, HEX 200 /Address of 1st array elements
N, DEC 6 /Number of array elements
DEC 18 /First Value
DEC -3
DEC 10
DEC 1
DEC -3
DEC 0
The general structure of the assembly language source code is illustrated in figure 1. Note that your code will precede the data area.
ORG 100
/Your program goes here
HALT
Addr, HEX 200 /Address of 1st array elements
N, DEC 6 /Number of array elements
DEC 18 /First Value
DEC -3
DEC 10
DEC 1
DEC -3
DEC 0