Пример #1
0
        public StandardRegisterFile(StackFile s, int[] file)
        {
            stack = s;

            this.data          = file;
            stack.StackPointer = this.data[29];
        }
Пример #2
0
 public InstructionMapper(Dictionary <String, Int32> label, Dictionary <String, Object> ROData, StandardRegisterFile parFile, SpecialRegisterFile parSpecial, StackFile parStack)
 {
     this.labels  = label;
     this.RO_Data = ROData;
     file         = parFile;
     special      = parSpecial;
     stack        = parStack;
     SetCommands();
 }
Пример #3
0
 public SraCommand(StandardRegisterFile file, SpecialRegisterFile special, StackFile stack) : base(file, special, stack)
 {
 }
Пример #4
0
 public Processor(int[] pfile, int[] pspecial, List <UInt32> pstack)
 {
     stack       = new StackFile(pstack);
     gpRegisters = new StandardRegisterFile(stack, pfile);
     sRegisters  = new SpecialRegisterFile(pspecial);
 }
Пример #5
0
 public Processor()
 {
     stack       = new StackFile();
     gpRegisters = new StandardRegisterFile(stack);
     sRegisters  = new SpecialRegisterFile();
 }
Пример #6
0
 public StandardRegisterFile(StackFile s)
 {
     stack     = s;
     this.data = new int[32];
 }
Пример #7
0
 public ALUCommand(StandardRegisterFile parFile, SpecialRegisterFile parSpecial, StackFile parStack)
 {
     file    = parFile;
     stack   = parStack;
     special = parSpecial;
 }