示例#1
0
        private void InitMachine(IZmachineInputOutput io)
        {
            setProgramCounter();
            for (int i = 0; i < 128; ++i)
            {
                callStack[i] = new RoutineCallState();
            }

            objectTable = new ObjectTable(memory);
            lex         = new Lex(memory, io);
        }
示例#2
0
        // Class constructor : Loads in data from file and sets Program Counter
        public Machine(string filename)
        {
            memory.load(filename);
            setProgramCounter();

            for (int i = 0; i < 128; ++i)
            {
                callStack[i] = new RoutineCallState();
            }

            objectTable = new ObjectTable(memory);
            lex         = new Lex(memory);
        }
示例#3
0
        // Class constructor : Loads in data from file and sets Program Counter
        public Machine(string filename)
        {
            memory.load(filename);
            setProgramCounter();

            for (int i =0  ; i < 128 ; ++i)
                callStack[i] = new RoutineCallState();

            objectTable = new ObjectTable(memory);
            lex = new Lex(memory);
        }