Winter 2011 - January to April 2011 - Updated 2011-04-22 13:40 EDT
Assignment #11 - LMC control statements and subroutine calls
Assignment #12 - LMC Linking, Relocation, and Loading
301_LMC.html - The “Little Man” Computer
302_LMC_instruction_cycle.txt - The Little Man Computer Instruction Cycle
305_LMC_opcodes.html - Extended LMC Operation Codes - Opcodes
306_LMCProgramming.html - LMC Machine Level Programming
307_LMC_lights.txt - LMC Negative Flag Trickery
350_LMC_sample1.txt - add and subtract
350_LMC_sample2.txt - input, add, output
350_LMC_sample3.txt - input, add, and loop using a counter
350_LMC_sample4.txt - input, IF, output
350_LMC_sample5.txt - WHILE loop quotient and remainder
350_LMC_sample6.txt - negative flag and a FOR loop
350_LMC_sample7.txt - subroutine call/return and linkage
360_LMC_Simulator.html - Clone of Son of LMC Simulator
362_LMC_control.html - LMC Loop and Skip Condition Calculations
363_LMC_indirect.txt - LMC Indirection Tricks
364_LMC_bootstrap.html - The Bootstrap Process (including LMC)
370_LMC_link.html - Linking and Generation of Executable Code from Source Program Files
373_LMC_object_file_format.html - Linking and External “Object” Files and Libraries
380_LMC_coding_help.txt - Comments on writing and commenting LMC Code
400_GeneralModel.html - The General Computer Model
410_MachineLevelInstructions.html - Machine Level Instructions (in the General Model)
415_HardwareInterrupts.html - Hardware Interrupts
These documents have restricted distribution and cannot be put on the Course Home Page.
Your in-class notes go here.
The LMC (continued)
This example was not done: This is a subroutine. How many arguments? What does this code do?
00 000
01 000
02 100
03 411
04 200
05 802
06 908
07 902
08 100
09 311
10 901
11 002
Not done: Relocate the code to load at 20
This example was not done: Using only the object file machine code and tables, load Pause and Dble starting at location 20.
See Week 14.