Little Man Computer Lesson 2 LMC What do you recall about LMC? HIGHER LOWER AND SUBTRACTION Little Man Computer Lesson 2
REMEMBER THESE CODES? 901? 118? 2XX? 3XX? IN? DATA?
RECAP ?
WHAT WILL THIS PROGRAM DO?
Now using the compiler create the code / program Now using the compiler create the code / program. test your program does it do what you expected?
COMPILER TOP TIPS ALWAYS SAVE THE FILE BEFORE RUNNING ENSURE THE LMC IS RESET ADD THE VARIABLES (DATA) TO THE END
COMPILER VERSION Higher or lower
CAN YOU BUILD A PROGRAM THAT SUBTRACTS? Write down what you have to do first What are the stages? Convert to code Use the Compiler Test!
Subtraction – mail boxes answers
SUBTRACTION: LMC STYLE Subtractions – compiler version
LMC Challenges Easy: Can you subtract TWO numbers? Medium: Can you make a countdown? Brain Drain: Can you Multiply two numbers?