LMC is a learning tool over @http://gcsecomputing.org.uk/lmc/index.html and a set of problems are "Write a program to output the numbers 1 to 10 in ascending order.
Write a program to output the numbers 1 to 10 in descending order."
Using the instruction set http://gcsecomputing.org.uk/lmc/instruction_set.html I was able to get this
loop LDA value1
OUT
SUB value2
STA value1
BRP loop
value1 DAT 10
value2 DAT 1
This counts from 10 to 0 but I can't figure out how to count upward to 10 and then stop counting. Any help solving these two problems would be very much appreciated.