Esempio n. 1
0
        internal General8BitALUEmitter(byte opcodeByte, Opcodes8080 opcode)
        {
            _opcodeByte = opcodeByte;
            _opcode     = opcode;

            _register            = DetermineRegister(opcodeByte);
            _arithmeticOpCode    = ArithmeticOpcode(_opcode);
            _useCarryInOperation = UseCarryInOperation(_opcode);
        }
Esempio n. 2
0
 /// <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
 {
Esempio n. 3
0
 internal General8BitALUEmitter(byte opcodeByte, Opcodes8080 opcode, byte operand)
     : this(opcodeByte, opcode)
 {
     _operand = operand;
 }