mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
cd: switch to CD controller code from genplus
same license, much cleaner code using own dma code though..
This commit is contained in:
parent
a6523294e2
commit
3f23709ef3
14 changed files with 1212 additions and 807 deletions
|
@ -12,6 +12,22 @@
|
|||
#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