Exemple #1
0
 protected Instruction(OpCode code, AddressingMode mode, int lineNumber, ILabelFinder labelFinder)
 {
     Code         = code;
     Mode         = mode;
     _lineNumber  = lineNumber;
     _labelFinder = labelFinder;
 }
 private static Instruction Instruction(
     OpCode code,
     AddressingMode mode,
     string?addressString     = null,
     string?label             = null,
     int lineNumber           = 0,
     ILabelFinder labelFinder = default !)
 {
     return(new InstructionFactory(labelFinder).Create(code, mode, addressString, lineNumber, label));
 }
 public InstructionFactory(ILabelFinder labelFinder)
 {
     _labelFinder = labelFinder;
 }
 public SingleByteAddressInstruction(OpCode code, AddressingMode mode, int lineNumber, ILabelFinder labelFinder)
     : base(code, mode, lineNumber, labelFinder)
 {
 }
Exemple #5
0
 public UnknownInstruction(OpCode code, AddressingMode mode, int lineNumber, ILabelFinder labelFinder)
     : base(code, mode, lineNumber, labelFinder)
 {
 }
 public InstructionParser(ILabelFinder labelFinder)
 {
     _factory = new InstructionFactory(labelFinder);
 }