Unformatted text preview: .BEGIN IN A IN B LOAD A COMPARE B JUMPLT LESS JUMP PRINT LESS: STORE TEMP LOAD B STORE A LOAD TEMP STORE B PRINT: OUT A OUT B HALT A: .DATA 0 B: .DATA 0 TEMP: .DATA 0 .END a. (4 Points) What will be printed if the user enters 6 followed by 17 ? Answer: 6 17 b. (4 Points) What will be printed if the user enters 12 followed by 8 ? Answer: 8 12 c. (2 Points) What does this program do? Answer: the inputs are printed in ascending order, i.e. this program sorts a list of length two....
View Full Document
This note was uploaded on 09/15/2011 for the course CMPS 10 taught by Professor Tantalo during the Fall '08 term at UCSC.
- Fall '08