Ejemplo n.º 1
0
Archivo: PIC.cs Proyecto: eliasv/PicSim
 public PIC(ref RegisterFile memorymap, List<String> Code)
 {
     rf = memorymap;
     HexCode = Code;
     FLASH = decompile();
     setup();
 }
Ejemplo n.º 2
0
Archivo: PIC.cs Proyecto: eliasv/PicSim
 public PIC(ref RegisterFile memorymap, List <String> Code)
 {
     rf      = memorymap;
     HexCode = Code;
     FLASH   = decompile();
     setup();
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo n.º 8
0
Archivo: PIC.cs Proyecto: eliasv/PicSim
 public PIC(ref RegisterFile mm, List<picWord> program)
 {
     FLASH = program;
     rf = mm;
     setup();
 }
Ejemplo n.º 9
0
 public picWord(int bin, int addr, ref RegisterFile r)
 {
     binary      = bin;
     BaseAddress = addr;
     rf          = r;
 }
Ejemplo n.º 10
0
Archivo: PIC.cs Proyecto: eliasv/PicSim
 public PIC(ref RegisterFile mm, List <picWord> program)
 {
     FLASH = program;
     rf    = mm;
     setup();
 }