Exemplo n.º 1
0
 public AssemblerCompiler(IInstructionSetProvider instructionSetProvider)
 {
     this.instructionSetProvider = instructionSetProvider;
     instructions = new Dictionary <string, AssemblerOpcodeSet>();
     registers    = new Dictionary <string, Tuple <byte, RegisterType> >();
     constants    = new Dictionary <string, int>();
     labels       = new Dictionary <string, int>();
     line         = 1;
 }
Exemplo n.º 2
0
 public AssemblerOpcodeSet(IInstructionSetProvider instructionSetProvider)
 {
     this.instructionSetProvider = instructionSetProvider;
     this.opcodes = new HashSet <byte>();
 }