mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
32x: change ppc handling for better logging
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@791 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
db1d3564e6
commit
a44737c187
2 changed files with 6 additions and 3 deletions
|
@ -367,7 +367,7 @@ INLINE void BRA(UINT32 d)
|
||||||
#if BUSY_LOOP_HACKS
|
#if BUSY_LOOP_HACKS
|
||||||
if (disp == -2)
|
if (disp == -2)
|
||||||
{
|
{
|
||||||
UINT32 next_opcode = RW(sh2->ppc & AM);
|
UINT32 next_opcode = RW(sh2->pc & AM);
|
||||||
/* BRA $
|
/* BRA $
|
||||||
* NOP
|
* NOP
|
||||||
*/
|
*/
|
||||||
|
@ -795,7 +795,7 @@ INLINE void DT(UINT32 n)
|
||||||
sh2->sr &= ~T;
|
sh2->sr &= ~T;
|
||||||
#if BUSY_LOOP_HACKS
|
#if BUSY_LOOP_HACKS
|
||||||
{
|
{
|
||||||
UINT32 next_opcode = RW(sh2->ppc & AM);
|
UINT32 next_opcode = RW(sh2->pc & AM);
|
||||||
/* DT Rn
|
/* DT Rn
|
||||||
* BF $-2
|
* BF $-2
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -71,15 +71,18 @@ int sh2_execute(SH2 *sh2_, int cycles)
|
||||||
|
|
||||||
if (sh2->delay)
|
if (sh2->delay)
|
||||||
{
|
{
|
||||||
|
sh2->ppc = sh2->delay;
|
||||||
opcode = RW(sh2->delay);
|
opcode = RW(sh2->delay);
|
||||||
sh2->pc -= 2;
|
sh2->pc -= 2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
sh2->ppc = sh2->pc;
|
||||||
opcode = RW(sh2->pc);
|
opcode = RW(sh2->pc);
|
||||||
|
}
|
||||||
|
|
||||||
sh2->delay = 0;
|
sh2->delay = 0;
|
||||||
sh2->pc += 2;
|
sh2->pc += 2;
|
||||||
sh2->ppc = sh2->pc;
|
|
||||||
|
|
||||||
switch (opcode & ( 15 << 12))
|
switch (opcode & ( 15 << 12))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue