mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-10-27 00:29:39 -04:00
32x: drc: handlers wip
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@826 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
c18edb34e6
commit
80599a42db
10 changed files with 830 additions and 116 deletions
|
|
@ -50,11 +50,17 @@ void sh2_execute(SH2 *sh2, int cycles);
|
|||
|
||||
// pico memhandlers
|
||||
// XXX: move somewhere else
|
||||
unsigned int p32x_sh2_read8(unsigned int a, SH2 *sh2);
|
||||
unsigned int p32x_sh2_read16(unsigned int a, SH2 *sh2);
|
||||
unsigned int p32x_sh2_read32(unsigned int a, SH2 *sh2);
|
||||
void p32x_sh2_write8(unsigned int a, unsigned int d, SH2 *sh2);
|
||||
void p32x_sh2_write16(unsigned int a, unsigned int d, SH2 *sh2);
|
||||
void p32x_sh2_write32(unsigned int a, unsigned int d, SH2 *sh2);
|
||||
#if !defined(REGPARM) && defined(__i386__)
|
||||
#define REGPARM(x) __attribute__((regparm(x)))
|
||||
#else
|
||||
#define REGPARM(x)
|
||||
#endif
|
||||
|
||||
unsigned int REGPARM(2) p32x_sh2_read8(unsigned int a, SH2 *sh2);
|
||||
unsigned int REGPARM(2) p32x_sh2_read16(unsigned int a, SH2 *sh2);
|
||||
unsigned int REGPARM(2) p32x_sh2_read32(unsigned int a, SH2 *sh2);
|
||||
void REGPARM(3) p32x_sh2_write8(unsigned int a, unsigned int d, SH2 *sh2);
|
||||
void REGPARM(3) p32x_sh2_write16(unsigned int a, unsigned int d, SH2 *sh2);
|
||||
void REGPARM(3) p32x_sh2_write32(unsigned int a, unsigned int d, SH2 *sh2);
|
||||
|
||||
#endif /* __SH2_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue