private DisassemblePRX ( 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 | |
리턴 | string |
private string DisassemblePRX(string name, ushort operand, ushort nextword, ushort address, bool showMemoryContents, out ushort instructionSize)
{
int operation_index = (operand & 0xff00) >> 8;
instructionSize = 2;
switch (operation_index) {
case 0: // RTS
return "RTS";
case 1: // RTS.F
return "RTS.F";
case 2: // RTI
return "RTI";
case 3: // SWI
return "SWI";
case 4: // SLP
return "SLP";
default:
return "???";
}
}