mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sh2 drc, make B/W read functions signed (reduces generated code size)
This commit is contained in:
parent
ed7e915078
commit
aa4c4cb951
7 changed files with 85 additions and 60 deletions
|
@ -44,10 +44,10 @@ unsigned short scan_block(unsigned int base_pc, int is_slave,
|
|||
#define _DRC_DECLARE_SR(SR) __DRC_DECLARE_SR(SR)
|
||||
#define DRC_DECLARE_SR _DRC_DECLARE_SR(DRC_SR_REG)
|
||||
#define DRC_SAVE_SR(sh2) \
|
||||
if ((sh2->state & (SH2_STATE_RUN)) == SH2_STATE_RUN) \
|
||||
if ((sh2->state & (SH2_STATE_RUN|SH2_STATE_SLEEP)) == SH2_STATE_RUN) \
|
||||
sh2->sr = sh2_sr;
|
||||
#define DRC_RESTORE_SR(sh2) \
|
||||
if ((sh2->state & (SH2_STATE_RUN)) == SH2_STATE_RUN) \
|
||||
if ((sh2->state & (SH2_STATE_RUN|SH2_STATE_SLEEP)) == SH2_STATE_RUN) \
|
||||
sh2_sr = sh2->sr;
|
||||
#else
|
||||
#define DRC_DECLARE_SR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue