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

DisassembleSTX() private method

private DisassembleSTX ( 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 DisassembleSTX(string name, ushort operand, ushort nextword, ushort address, bool showMemoryContents, out ushort instructionSize)
        {
            instructionSize = 2;
            int sp_delta = (sbyte)((operand & 0xff00) >> 8);
            return $"{name,-8}{(sp_delta >= 0 ? "+" : string.Empty)}{sp_delta}";
        }