Dat2343
This presentation is the property of its rightful owner.
Sponsored Links
1 / 15

DAT2343 PowerPoint PPT Presentation


  • 126 Views
  • Uploaded on
  • Presentation posted in: General

DAT2343. LMC Simulator Usage. © Alan T. Pinck / Algonquin College; 2003. Accessing the LMC software. Map a network drive to: \\woodroffe-13\courseware\dat2343\sonoflmc the binary (executable program) form is in the directory:pgm with the name:SONOFLMC.EXE copy or run it from here.

Download Presentation

DAT2343

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Dat2343

DAT2343

LMC Simulator Usage

© Alan T. Pinck / Algonquin College; 2003


Accessing the lmc software

Accessing the LMC software

Map a network drive to:

\\woodroffe-13\courseware\dat2343\sonoflmc

the binary (executable program) form is in the directory:pgm

with the name:SONOFLMC.EXE

copy or run it from here


The lmc window

The LMC Window


The file drop down menu

The File Drop-Down Menu

  • Load

    • re-load previously saved mailbox contents from file

  • Save

    • save current contents of mailboxes to a file for future loading during a later LMC simulation session

  • Exit

    • same effect as the Quit button


Scrolling the displayed mailboxes

Scrolling the Displayed Mailboxes

  • Only 10 mailboxes are visible at a time.

  • Use the scroll bar below the 10 mailbox text boxes to see other sets of 10


Entering mailbox values

Entering Mailbox Values

  • Click in the mailbox whose contents you wish to change

  • Highlight and replace the old contents with a new 3 decimal digit value; or type a new 3 digit decimal value in front of the old value

  • Tab or click on another textbox to cause the contents of the one you just edited to be changed


The single step button

The “Single Step” Button

  • Performs one cycle of the instruction cycle

    • loads “Last Instruction Done” with 3 digit value from mailbox with “Address” equal to the “Counter” value

    • increments the “Counter”

    • performs the operation indicated by the numeric instruction in “Last Instruction Done”


The go button

The “Go” Button

  • Performs the instruction cycle repeatedly until a Halt (numeric code 700) instruction has been executed

  • May be possible to interrupt this processing by clicking the “Halt” button


The next io button

Performs the instruction cycle repeatedly until the next INPUT (code 500) or OUTPUT (code 600) has been executed

Note that the instruction cycle execution is halted after the IO operation has been done

The “Next IO” Button


Warning on input control

Warning On Input Control

  • The INPUT (code 500) instruction does not wait for the user to enter a new value in the “Input Box”

  • The value in the “Input Box” must be pre-set before the INPUT instruction is executed.

  • Usual method: Enter first input value before starting execution; then run to “Next IO” and (assuming the IO was an Input) enter the next input value, before continuing.


The halt button

The “Halt” Button

  • Used as an emergency attempt to stop a program’s execution when the program is acting under a “Run” or “Next IO” command, but is in a loop with no HALT instruction (or, for “Next IO”, no INPUT nor OUTPUT instructions) within the loop.


The reset counter button

The “Reset Counter” Button

  • Resets the “Counter” back to 00

  • Does not cause the “Little Man” to start his instruction cycle


The quit button

The “Quit” Button

  • Stops execution of the LMC simulator and closes the LMC simulator window


Demonstration of lmc simulator usage

Demonstration of LMC Simulator Usage


Dat2343

End of Lecture


  • Login