internal General8BitALUEmitter(byte opcodeByte, Opcodes8080 opcode) { _opcodeByte = opcodeByte; _opcode = opcode; _register = DetermineRegister(opcodeByte); _arithmeticOpCode = ArithmeticOpcode(_opcode); _useCarryInOperation = UseCarryInOperation(_opcode); }
/// <summary> /// Represents the number of bytes that this opcode takes up in the /// program. /// </summary> /// /// <param name="opcode"> /// The decoded opcode /// </param> /// /// <returns> /// The number of consecutive bytes in memory that correspond /// to this opcode. /// </returns> internal static byte Length(this Opcodes8080 opcode) => opcode switch {
internal General8BitALUEmitter(byte opcodeByte, Opcodes8080 opcode, byte operand) : this(opcodeByte, opcode) { _operand = operand; }