summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-03-30 14:20:06 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-03-30 14:20:06 +0000
commit974677858be5c896eae081874c2839f4e1817562 (patch)
treeca62a4f75cbb65ece84c0a30d0bf577e5abaf89a /src/lib
parent377510ec62c2b8916a169d5f24865105acd74d05 (diff)
small LSB_FIRST cleanup (nw)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/formats/coco_cas.c19
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 =