private void BitPatternBTI(ushort operand, out ushort value, out RegGeneral destination) {
destination = (RegGeneral)((operand & 0xE000) >> 13); // bits DEF
RegGeneral source = (RegGeneral)((operand & 0x0F00) >> 8);
bool asRegister = (operand & 0x1000) != 0;
value = asRegister ?
(ushort)(R[(int)source] & 0x000F) :
(ushort)((operand & 0x1E00) >> 9);
}
YCPU/Source/Libraries/YpsilonCPU/Emulation/Processor/YCPU.BitPatterns.cs
Line 63 in 652601e
Suggested fix: