LMC Little Man Computer What do you know about LMC? Talk about input process output Little Man Computer
CAN YOU HELP THESE MINIONS work out these sums ? 2 + 2? 456 / 13? 564 x 34? NOW WRITE DOWN ALL THE INSTRUCTIONS AS METICULOUSLY AS YOU CAN
Now use these codes for your instructions
ORDER THESES INSTRUCTIONS Input a number and put it in the calculator Store the number in the calculator in memory slot 99 Add the number in memory slot 99 to the number in the calculator Output the number which is now in the calculator Halt
Add LMC
Open lmc Can you get it to do anything? Can you get it to store a value?
USING THE MAIL BOXES AND THE CODES CAN YOU ADD NUMBERS?
THE ANSWER
USING THE COMPILER
COMPILER TOP TIPS ALWAYS SAVE THE FILE BEFORE RUNNING ENSURE THE LMC IS RESET ADD THE VARIABLES (DATA) TO THE END
COMPILER VERSION
LMC ChallengeS Easy: Can you subtract TWO numbers? Hard: Can you make a countdown?