Esempio n. 1
0
File: PIC.cs Progetto: eliasv/PicSim
 public PIC(ref RegisterFile memorymap, List<String> Code)
 {
     rf = memorymap;
     HexCode = Code;
     FLASH = decompile();
     setup();
 }
Esempio n. 2
0
File: PIC.cs Progetto: eliasv/PicSim
 public PIC(ref RegisterFile memorymap, List <String> Code)
 {
     rf      = memorymap;
     HexCode = Code;
     FLASH   = decompile();
     setup();
 }
Esempio n. 3
0
 public Instruction(int Bin, int Address, ref RegisterFile regin, ref asmLabel label)
 {
     binary      = Bin;
     rf          = regin;
     BaseAddress = Address;
     Label       = label;
     ASM         = asmLookUp(Bin);
 }
Esempio n. 4
0
 public Instruction(int Bin, int Address, ref RegisterFile regin, String label)
 {
     binary      = Bin;
     rf          = regin;
     BaseAddress = Address;
     Label       = new asmLabel(label, BaseAddress);
     ASM         = asmLookUp(Bin);
 }
Esempio n. 5
0
 /// <summary>
 /// Constructor for an Instruction with a known memory location. Decompiles
 /// the binary data into its assembly mnemonic.
 /// </summary>
 /// <param name="Bin">14-bit Binary containing the instruction.</param>
 /// <param name="Address">Memory location of the instruction.</param>
 public Instruction(int Bin, int Address)
 {
     binary      = Bin;
     rf          = new RegisterFile();
     BaseAddress = Address;
     Label       = new asmLabel("", BaseAddress);
     ASM         = asmLookUp(Bin);
 }
Esempio n. 6
0
 /// <summary>
 /// Empty Instruction constructor. Generates a NOP instruction at memory
 /// address 0x0000;
 /// </summary>
 public Instruction()
 {
     binary      = 0;
     BaseAddress = 0;
     rf          = new RegisterFile();
     Label       = new asmLabel("", BaseAddress);
     ASM         = "NOP";
     mnemonic    = ASM;
 }
Esempio n. 7
0
 public Instruction(int Bin, int Address, ref RegisterFile regin, ref Stack <int> ptrTOS)
 {
     // TODO: Complete member initialization
     binary      = Bin;
     rf          = regin;
     BaseAddress = Address;
     ASM         = asmLookUp(Bin);
     stck        = ptrTOS;
 }
Esempio n. 8
0
File: PIC.cs Progetto: eliasv/PicSim
 public PIC(ref RegisterFile mm, List<picWord> program)
 {
     FLASH = program;
     rf = mm;
     setup();
 }
Esempio n. 9
0
 public picWord(int bin, int addr, ref RegisterFile r)
 {
     binary      = bin;
     BaseAddress = addr;
     rf          = r;
 }
Esempio n. 10
0
File: PIC.cs Progetto: eliasv/PicSim
 public PIC(ref RegisterFile mm, List <picWord> program)
 {
     FLASH = program;
     rf    = mm;
     setup();
 }