mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
remove regs union due to compiler issues
GP2X toolchains are padding the unions no matter what :(
This commit is contained in:
parent
9770f5316f
commit
f47d0a2898
5 changed files with 144 additions and 160 deletions
|
@ -12,22 +12,6 @@
|
|||
#define int16 signed short
|
||||
#define int32 signed int
|
||||
|
||||
typedef union
|
||||
{
|
||||
uint16 w;
|
||||
struct
|
||||
{
|
||||
#if 1
|
||||
uint8 l;
|
||||
uint8 h;
|
||||
#else
|
||||
uint8 h;
|
||||
uint8 l;
|
||||
#endif
|
||||
} byte;
|
||||
|
||||
} reg16_t;
|
||||
|
||||
#define READ_BYTE(BASE, ADDR) (BASE)[(ADDR)^1]
|
||||
#define WRITE_BYTE(BASE, ADDR, VAL) (BASE)[(ADDR)^1] = (VAL)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue