============================== Assignment #07 - LMC Simulator ============================== - Ian! D. Allen - idallen@idallen.ca - www.idallen.com 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. 00 : IN 01 : STO Count 02 : IN 03 : STO Max 04 : Repeat LDA Count 05 : OUT 06 : LDA Count ; redundant - already loaded 07 : ADD One 08 : STO Count 09 : SUB Max 10 : SKP 11 : JMP Repeat 12 : HLT 13 : Count DAT 000 ; variable - will be overwritten 14 : One DAT 001 ; constant 15 : Max DAT 010 ; variable - will be overwritten REPEAT at 04 COUNT at 13 ONE at 14 MAX at 15 Location Code : Labels Opcodes Operands Comments 00 500 : IN 01 213 : STO Count 02 500 : IN 03 215 : STO Max 04 113 : Repeat LDA Count 05 600 : OUT 06 113 : LDA Count 07 314 : ADD One 08 213 : STO Count 09 415 : SUB Max 10 802 : SKP 11 904 : JMP Repeat 12 700 : HLT 13 000 : Count DAT 000 14 001 : One DAT 001 15 010 : Max DAT 010