Пример #1
0
        public override Opcode Parse(ZorkStream z)
        {
            var re = new Call();

            re.BranchOffset_1 = 50;
            return(re);
        }
Пример #2
0
 private void LoadStoryFile(StoryFile f)
 {
     _MemmorySize = f.rawData.Length;
     Reset();
     Memmory = new ZorkStream(f.rawData);
     //TODO: load header data
     ProgramCounter = f.Header.ProgramCounter;
 }
Пример #3
0
 public void Reset()
 {
     Memmory = new ZorkStream(new byte[_MemmorySize]);
     Stack   = new byte[_StackSize];
 }
Пример #4
0
 public ZorkEngine()
 {
     Memmory = new ZorkStream(new byte[_MemmorySize]);
     Stack   = new byte[_StackSize];
 }