public DASM16Instruction( DCPU16Opcode opcode, DASM16Value valueA, DASM16Value valueB ) : this(opcode) { Values = new DASM16Value[] { valueA, valueB }; Length = (ushort) ( 1 + ( Values[ 0 ].Extended ? 1 : 0 ) + ( Values[ 1 ].Extended ? 1 : 0 ) ); }
public void AddInstruction( DCPU16Opcode opcode, DASM16Value valueA, DASM16Value valueB ) { AddInstruction( new DASM16Instruction( opcode, valueA, valueB ) ); }