diff options
Diffstat (limited to 'src/lib/formats/coco_cas.c')
-rw-r--r-- | src/lib/formats/coco_cas.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/lib/formats/coco_cas.c b/src/lib/formats/coco_cas.c index d93b7518a2b..34078a9e8a0 100644 --- a/src/lib/formats/coco_cas.c +++ b/src/lib/formats/coco_cas.c @@ -32,6 +32,7 @@ **************************************************************************/ #include "coco_cas.h" +#include "emu.h" #define COCO_WAVESAMPLES_HEADER (1.0) #define COCO_WAVESAMPLES_TRAILER (1.0) @@ -40,24 +41,6 @@ //some games load with only 5s, but most games need 15s #define ALICE32_WAVESAMPLES_HEADER (15.0) -// PAIR is an endian-safe union useful for representing 32-bit CPU registers -union PAIR -{ -#ifdef LSB_FIRST - struct { UINT8 l,h,h2,h3; } b; - struct { UINT16 l,h; } w; - struct { INT8 l,h,h2,h3; } sb; - struct { INT16 l,h; } sw; -#else - struct { UINT8 h3,h2,h,l; } b; - struct { INT8 h3,h2,h,l; } sb; - struct { UINT16 h,l; } w; - struct { INT16 h,l; } sw; -#endif - UINT32 d; - INT32 sd; -}; - static int synccount; const struct CassetteModulation coco_cas_modulation = |