Ypsilon.Emulation.Processor.YCPU.DisassembleBTT C# (CSharp) Method

DisassembleBTT() private method

private DisassembleBTT ( string name, ushort operand, ushort nextword, ushort address, bool showMemoryContents, ushort &instructionSize ) : string
name string
operand ushort
nextword ushort
address ushort
showMemoryContents bool
instructionSize ushort
return string
        private string DisassembleBTT(string name, ushort operand, ushort nextword, ushort address, bool showMemoryContents, out ushort instructionSize)
        {
            instructionSize = 2;
            RegGeneral destination = (RegGeneral)((operand & 0xE000) >> 13);
            bool as_register = (operand & 0x1000) != 0;
            ushort value = as_register ?
                (ushort)((operand & 0x0700) >> 8) :
                (ushort)((operand & 0x0F00) >> 8);
            return
                $"{name,-8}{NameOfRegGP(destination)}, {(as_register ? $"{NameOfRegGP((RegGeneral)value),-8}(${R[value]:X1})" : $"${value:X1}")}";
        }