private DisassembleBRA ( 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 | |
Résultat | string |
private string DisassembleBRA(string name, ushort operand, ushort nextword, ushort address, bool showMemoryContents, out ushort instructionSize)
{
instructionSize = 2;
sbyte value = (sbyte)((operand & 0xFF00) >> 8);
return string.Format("{0,-8}{3}{1:000} (${2:X4})", name, value, (ushort)(address + value), (value & 0x80) == 0 ? "+" : string.Empty);
}