Changes to avoid collisions with system globals on OpenSolaris. (qmc2)

This commit is contained in:
R. Belmont 2008-08-06 03:25:58 +00:00
parent 43021ec0e2
commit 661aae28dc
10 changed files with 30 additions and 2 deletions

View File

@ -1080,6 +1080,9 @@ INLINE void WRMEM(offs_t addr, UINT8 data) {
/* 6280 ********************************************************
* SEC Set carry flag
***************************************************************/
#if defined(SEC)
#undef SEC
#endif
#define SEC \
CLEAR_T; \
P |= _fC

View File

@ -297,6 +297,9 @@ static UINT8 const *index_cycle;
#define EXTENDED IMMWORD(ea)
/* macros to set status flags */
#if defined(SEC)
#undef SEC
#endif
#define SEC CC|=CC_C
#define CLC CC&=~CC_C
#define SEZ CC|=CC_Z

View File

@ -262,6 +262,9 @@ CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N
#define EXTENDED IMMWORD(ea)
/* macros to set status flags */
#if defined(SEC)
#undef SEC
#endif
#define SEC CC|=CC_C
#define CLC CC&=~CC_C
#define SEZ CC|=CC_Z

View File

@ -58,6 +58,10 @@ static const char *const RegNames[]= {
0, "A", "XL", "XH", "X", "YL", "YH", "Y", "UL", "UH", "U", "P", "S"
};
#if defined(SEC)
#undef SEC
#endif
typedef enum {
ILL, ILL2, PREFD, NOP,

View File

@ -728,6 +728,9 @@
/* 6502 ********************************************************
* SEC Set carry flag
***************************************************************/
#if defined(SEC)
#undef SEC
#endif
#define SEC \
P |= F_C

View File

@ -832,6 +832,9 @@
/* 65ce02 ******************************************************
* SEC Set carry flag
***************************************************************/
#if defined(SEC)
#undef SEC
#endif
#define SEC \
P |= F_C

View File

@ -367,6 +367,9 @@ static const UINT8 flags8d[256]= /* decrement */
#define INDEXED {EA=X+(UINT8)M_RDOP_ARG(PCD);PC++;}
/* macros to set status flags */
#if defined(SEC)
#undef SEC
#endif
#define SEC CC|=0x01
#define CLC CC&=0xfe
#define SEZ CC|=0x04

View File

@ -178,6 +178,9 @@ static const UINT8 flags8d[256]= /* decrement */
#define INDEXED2 {IMMWORD(ea); EA+=X;}
/* macros to set status flags */
#if defined(SEC)
#undef SEC
#endif
#define SEC CC|=CFLAG
#define CLC CC&=~CFLAG
#define SEZ CC|=ZFLAG

View File

@ -309,6 +309,9 @@ CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N,CC_N
#define EXTENDED IMMWORD(ea)
/* macros to set status flags */
#if defined(SEC)
#undef SEC
#endif
#define SEC CC|=CC_C
#define CLC CC&=~CC_C
#define SEZ CC|=CC_Z

View File

@ -144,7 +144,7 @@ typedef struct
UINT16 z;
UINT16 texheader[4];
UINT8 luma;
} quad;
} _quad;
typedef struct _poly_extra_data poly_extra_data;
struct _poly_extra_data
@ -368,7 +368,7 @@ void model2_3d_set_zclip( UINT8 clip )
static void model2_3d_process_quad( UINT32 attr )
{
quad object;
_quad object;
UINT16 *th, *tp;
INT32 tho;
UINT32 cull, i;