mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-10 21:05:12 +01:00
[Core/SVP] fix pointer arithmetic on 64bit (#171)
I don't want broken version of my code to linger around.
This commit is contained in:
parent
07b01ca52b
commit
5d13ccbe3f
@ -219,7 +219,7 @@
|
||||
#define IJind (((op>>6)&4)|(op&3))
|
||||
|
||||
#define GET_PC() (PC - (unsigned short *)svp->iram_rom)
|
||||
#define GET_PPC_OFFS() ((unsigned int)PC - (unsigned int)svp->iram_rom - 2)
|
||||
#define GET_PPC_OFFS() ((unsigned char *)PC - svp->iram_rom - 2)
|
||||
#define SET_PC(d) PC = (unsigned short *)svp->iram_rom + d
|
||||
|
||||
#define REG_READ(r) (((r) <= 4) ? ssp->gr[r].byte.h : read_handlers[r]())
|
||||
|
Loading…
Reference in New Issue
Block a user