Merge pull request #592 from cxd4/RSP_signed_offset_hex
[RSP] bad DMEM offsets when (offset < 0)
This commit is contained in:
commit
801d257416
|
@ -26,6 +26,8 @@
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "opcode.h"
|
#include "opcode.h"
|
||||||
#include "RSP.h"
|
#include "RSP.h"
|
||||||
#include "CPU.h"
|
#include "CPU.h"
|
||||||
|
@ -1090,11 +1092,12 @@ char * RSPLc2Name ( DWORD OpCode, DWORD PC )
|
||||||
{
|
{
|
||||||
sprintf(
|
sprintf(
|
||||||
CommandName,
|
CommandName,
|
||||||
"%s\t$v%d[%d], 0x%04X(%s)",
|
"%s\t$v%d[%d], %c0x%03X(%s)",
|
||||||
mnemonics_lwc2[command.rd],
|
mnemonics_lwc2[command.rd],
|
||||||
command.rt,
|
command.rt,
|
||||||
command.del,
|
command.del,
|
||||||
command.voffset,
|
(command.voffset < 0) ? '-' : '+',
|
||||||
|
abs(command.voffset),
|
||||||
GPR_Name(command.base)
|
GPR_Name(command.base)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1123,11 +1126,12 @@ char * RSPSc2Name ( DWORD OpCode, DWORD PC )
|
||||||
{
|
{
|
||||||
sprintf(
|
sprintf(
|
||||||
CommandName,
|
CommandName,
|
||||||
"%s\t$v%d[%d], 0x%04X(%s)",
|
"%s\t$v%d[%d], %c0x%03X(%s)",
|
||||||
mnemonics_swc2[command.rd],
|
mnemonics_swc2[command.rd],
|
||||||
command.rt,
|
command.rt,
|
||||||
command.del,
|
command.del,
|
||||||
command.voffset,
|
(command.voffset < 0) ? '-' : '+',
|
||||||
|
abs(command.voffset),
|
||||||
GPR_Name(command.base)
|
GPR_Name(command.base)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue