In: Computer Science
Write a MARIE assembly language program that will read an “array” of positive decimal values stored in memory and output the smallest value. Use variable addr to store the location of the first data item. Use variable length to store the number of items in your array.
Your code should be organized such that adding an additional array item would only involve adding the data line (ie. 021 dec 400) and updating the length variable (ie. length, dec 5). You can assume there will be at least one data value.
Use comments throughout your program. Save your program as h9part1.mas and upload to our course web site.
/sample data, note: addresses will vary depending on your implementation
015 addr, hex 017
016 length, dec 4
017 dec 100
018 dec 200
019 dec 50
020 dec 300