mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
Changes to avoid collisions with system globals on OpenSolaris. (qmc2)
This commit is contained in:
parent
43021ec0e2
commit
661aae28dc
@ -1080,6 +1080,9 @@ INLINE void WRMEM(offs_t addr, UINT8 data) {
|
|||||||
/* 6280 ********************************************************
|
/* 6280 ********************************************************
|
||||||
* SEC Set carry flag
|
* SEC Set carry flag
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
#if defined(SEC)
|
||||||
|
#undef SEC
|
||||||
|
#endif
|
||||||
#define SEC \
|
#define SEC \
|
||||||
CLEAR_T; \
|
CLEAR_T; \
|
||||||
P |= _fC
|
P |= _fC
|
||||||
|
@ -297,6 +297,9 @@ static UINT8 const *index_cycle;
|
|||||||
#define EXTENDED IMMWORD(ea)
|
#define EXTENDED IMMWORD(ea)
|
||||||
|
|
||||||
/* macros to set status flags */
|
/* macros to set status flags */
|
||||||
|
#if defined(SEC)
|
||||||
|
#undef SEC
|
||||||
|
#endif
|
||||||
#define SEC CC|=CC_C
|
#define SEC CC|=CC_C
|
||||||
#define CLC CC&=~CC_C
|
#define CLC CC&=~CC_C
|
||||||
#define SEZ CC|=CC_Z
|
#define SEZ CC|=CC_Z
|
||||||
|
@ -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)
|
#define EXTENDED IMMWORD(ea)
|
||||||
|
|
||||||
/* macros to set status flags */
|
/* macros to set status flags */
|
||||||
|
#if defined(SEC)
|
||||||
|
#undef SEC
|
||||||
|
#endif
|
||||||
#define SEC CC|=CC_C
|
#define SEC CC|=CC_C
|
||||||
#define CLC CC&=~CC_C
|
#define CLC CC&=~CC_C
|
||||||
#define SEZ CC|=CC_Z
|
#define SEZ CC|=CC_Z
|
||||||
|
@ -58,6 +58,10 @@ static const char *const RegNames[]= {
|
|||||||
0, "A", "XL", "XH", "X", "YL", "YH", "Y", "UL", "UH", "U", "P", "S"
|
0, "A", "XL", "XH", "X", "YL", "YH", "Y", "UL", "UH", "U", "P", "S"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if defined(SEC)
|
||||||
|
#undef SEC
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
ILL, ILL2, PREFD, NOP,
|
ILL, ILL2, PREFD, NOP,
|
||||||
|
|
||||||
|
@ -728,6 +728,9 @@
|
|||||||
/* 6502 ********************************************************
|
/* 6502 ********************************************************
|
||||||
* SEC Set carry flag
|
* SEC Set carry flag
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
#if defined(SEC)
|
||||||
|
#undef SEC
|
||||||
|
#endif
|
||||||
#define SEC \
|
#define SEC \
|
||||||
P |= F_C
|
P |= F_C
|
||||||
|
|
||||||
|
@ -832,6 +832,9 @@
|
|||||||
/* 65ce02 ******************************************************
|
/* 65ce02 ******************************************************
|
||||||
* SEC Set carry flag
|
* SEC Set carry flag
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
#if defined(SEC)
|
||||||
|
#undef SEC
|
||||||
|
#endif
|
||||||
#define SEC \
|
#define SEC \
|
||||||
P |= F_C
|
P |= F_C
|
||||||
|
|
||||||
|
@ -367,6 +367,9 @@ static const UINT8 flags8d[256]= /* decrement */
|
|||||||
#define INDEXED {EA=X+(UINT8)M_RDOP_ARG(PCD);PC++;}
|
#define INDEXED {EA=X+(UINT8)M_RDOP_ARG(PCD);PC++;}
|
||||||
|
|
||||||
/* macros to set status flags */
|
/* macros to set status flags */
|
||||||
|
#if defined(SEC)
|
||||||
|
#undef SEC
|
||||||
|
#endif
|
||||||
#define SEC CC|=0x01
|
#define SEC CC|=0x01
|
||||||
#define CLC CC&=0xfe
|
#define CLC CC&=0xfe
|
||||||
#define SEZ CC|=0x04
|
#define SEZ CC|=0x04
|
||||||
|
@ -178,6 +178,9 @@ static const UINT8 flags8d[256]= /* decrement */
|
|||||||
#define INDEXED2 {IMMWORD(ea); EA+=X;}
|
#define INDEXED2 {IMMWORD(ea); EA+=X;}
|
||||||
|
|
||||||
/* macros to set status flags */
|
/* macros to set status flags */
|
||||||
|
#if defined(SEC)
|
||||||
|
#undef SEC
|
||||||
|
#endif
|
||||||
#define SEC CC|=CFLAG
|
#define SEC CC|=CFLAG
|
||||||
#define CLC CC&=~CFLAG
|
#define CLC CC&=~CFLAG
|
||||||
#define SEZ CC|=ZFLAG
|
#define SEZ CC|=ZFLAG
|
||||||
|
@ -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)
|
#define EXTENDED IMMWORD(ea)
|
||||||
|
|
||||||
/* macros to set status flags */
|
/* macros to set status flags */
|
||||||
|
#if defined(SEC)
|
||||||
|
#undef SEC
|
||||||
|
#endif
|
||||||
#define SEC CC|=CC_C
|
#define SEC CC|=CC_C
|
||||||
#define CLC CC&=~CC_C
|
#define CLC CC&=~CC_C
|
||||||
#define SEZ CC|=CC_Z
|
#define SEZ CC|=CC_Z
|
||||||
|
@ -144,7 +144,7 @@ typedef struct
|
|||||||
UINT16 z;
|
UINT16 z;
|
||||||
UINT16 texheader[4];
|
UINT16 texheader[4];
|
||||||
UINT8 luma;
|
UINT8 luma;
|
||||||
} quad;
|
} _quad;
|
||||||
|
|
||||||
typedef struct _poly_extra_data poly_extra_data;
|
typedef struct _poly_extra_data poly_extra_data;
|
||||||
struct _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 )
|
static void model2_3d_process_quad( UINT32 attr )
|
||||||
{
|
{
|
||||||
quad object;
|
_quad object;
|
||||||
UINT16 *th, *tp;
|
UINT16 *th, *tp;
|
||||||
INT32 tho;
|
INT32 tho;
|
||||||
UINT32 cull, i;
|
UINT32 cull, i;
|
||||||
|
Loading…
Reference in New Issue
Block a user