Jupyter notebook Little Man Computer/LMC.ipynb
Example
What does the following LMC program do?
Example
What about this one?
Example
Maximum of two numbers.
"Assembler" code
Translating to machine code
Example
Exercise
Modify the program above to compute the minimum of the two numbers. Create a new "Markdown" cell below this cell, and enter your program there. Include both the assembler code and machine code for your program. (The idea is for you to practice working with the jupyter notebook interface as well as thinking about the algorithm.) The Little Man instruction set can be found here and the Little Man simulator here.
(HINT: To edit a Markdown cell, double click it. To stop editing and typeset the cell, press SHIFT+ENTER. You can learn more about the Markdown format under the "Help" menu above. See the above cell for formatting ideas for the program.)