mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
rearrange globals
scripted find/replace gives slightly better code on ARM, less unnecessary asm, ~400 bytes saved
This commit is contained in:
parent
759c9d3846
commit
93f9619ed8
47 changed files with 532 additions and 573 deletions
|
@ -335,7 +335,7 @@ int SekIsIdleCode(unsigned short *dst, int bytes)
|
|||
(*dst & 0xc1ff) == 0x0038 || // move.x ($xxxx.w), dX
|
||||
(*dst & 0xf13f) == 0xb038) // cmp.x ($xxxx.w), dX
|
||||
return 1;
|
||||
if (PicoAHW & (PAHW_MCD|PAHW_32X))
|
||||
if (PicoIn.AHW & (PAHW_MCD|PAHW_32X))
|
||||
break;
|
||||
// with no addons, there should be no need to wait
|
||||
// for byte change anywhere
|
||||
|
@ -362,7 +362,7 @@ int SekIsIdleCode(unsigned short *dst, int bytes)
|
|||
return 1;
|
||||
break;
|
||||
case 12:
|
||||
if (PicoAHW & (PAHW_MCD|PAHW_32X))
|
||||
if (PicoIn.AHW & (PAHW_MCD|PAHW_32X))
|
||||
break;
|
||||
if ( (*dst & 0xf1f8) == 0x3010 && // move.w (aX), dX
|
||||
(dst[1]&0xf100) == 0x0000 && // arithmetic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue