Beispiel #1
0
 internal int RetFlag(Z80OpCode opcode, bool flag)
 {
     if (flag)
     {
         Ret();
         return(opcode.ClockCycles);
     }
     return(opcode.ClockCyclesAlt);
 }
Beispiel #2
0
 internal int CallFlag(Z80OpCode opcode, ushort address, bool flag)
 {
     if (flag)
     {
         Call(address);
         return(opcode.ClockCycles);
     }
     return(opcode.ClockCyclesAlt);
 }
Beispiel #3
0
 public Z80Instruction(ushort offset, Z80OpCode opCode, byte[] operand)
 {
     Offset     = offset;
     OpCode     = opCode;
     RawOperand = operand;
 }
Beispiel #4
0
 public Z80Instruction(Z80OpCode opCode, byte[] operand)
     : this(0, opCode, operand)
 {
 }
Beispiel #5
0
 public Z80Instruction(ushort offset, Z80OpCode opCode, byte[] operand)
 {
     Set(offset, opCode, operand);
 }
Beispiel #6
0
 public void Set(ushort offset, Z80OpCode opCode, byte[] operand)
 {
     Offset     = offset;
     OpCode     = opCode;
     RawOperand = operand;
 }