============================== Assignment #07 - LMC Simulator ============================== - Ian! D. Allen - idallen@idallen.ca - www.idallen.com Available online: Friday October 30, 2009 Due date in the Blackboard Assignment Area: due at 08:00 AM on Wednesday November 4, 2009 Do *not* use the DigitalDropbox to submit your answers. Answers will be posted after the due date/time so that you can check your answers before coming to class and ask questions in class. Please check your answers (and my answers!). I go over each assignment in class if there are questions about the answers. No questions means no review. Submission method: Via the "Assignments" DAT2343_Assignment_07 upload. Due to bugs in Blackboard, you can only submit your Assignment to me *once*. After that, you cannot submit any more times. If you need to re-submit it, you have to ask me to clear your previous submission. Do *not* use the DigitalDropbox to submit your answers. Answers will be posted shortly after the due date/time. Upload Assignment file names (two files to upload): assignment07_program.txt assignment07_lmc.txt The name must be exactly as given. Typing mistakes in the name mean no credit. Be precise. (Your userid is not required.) Upload only plain text, not HTML, not MSWord. No fonts. Plain text only. Plain text only. Did I mention that the format is plain text? ------------------ On the "LMCLink.htm" page in the course notes you will find an LMC main program and two subroutines "Pause" and "Dble". Do these things to the MAIN routine only (ignore the other modules): 1. Remove the calls to DBLE and PAUSE (and everything related to them). 2. Have MAIN read two input values for COUNT and MAX before looping. 3. Assemble your program into LMC machine code. Load your machine code into the LMC simulator and make sure it works. It should input two numbers and loop from the first number to just before (not including) the second, outputting each number. [Updated Oct 31] 4. Choose "Save" in the simulator to save your working LMC machine code for submission. 5. Add comments to the code, constants, and variables and submit it. No comments; no marks. Submission Method 1. Submit your LMC assembly language code program in usual 6-column format using these column headings in this exact order: Location Code Labels Opcodes Operands Comments Submit your program code using file name: assignment07_program.txt a) Put the Course Assignment Label at the top of the file as comments. LMC Assembler comments start with ";". b) The Comments field of your code should show clearly the meaning of all the code. Every variable and constant should have a comment. Most (but not all) machine instructions will need comments. See the many LMC sample programs in the course notes for examples of comments. No comments; no marks. 2. Choose "Save" in your LMC simulator to save the LMC machine code in a file. Submit the LMC machine code (a list of 100 3-digit numbers) in a file using the file name: assignment07_lmc.txt No course assignment label is needed on this file. Do not edit the file.