mirror of
https://github.com/holub/mame
synced 2025-05-28 08:33:05 +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 ********************************************************
|
||||
* SEC Set carry flag
|
||||
***************************************************************/
|
||||
#if defined(SEC)
|
||||
#undef SEC
|
||||
#endif
|
||||
#define SEC \
|
||||
CLEAR_T; \
|
||||
P |= _fC
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
||||
|
@ -728,6 +728,9 @@
|
||||
/* 6502 ********************************************************
|
||||
* SEC Set carry flag
|
||||
***************************************************************/
|
||||
#if defined(SEC)
|
||||
#undef SEC
|
||||
#endif
|
||||
#define SEC \
|
||||
P |= F_C
|
||||
|
||||
|
@ -832,6 +832,9 @@
|
||||
/* 65ce02 ******************************************************
|
||||
* SEC Set carry flag
|
||||
***************************************************************/
|
||||
#if defined(SEC)
|
||||
#undef SEC
|
||||
#endif
|
||||
#define SEC \
|
||||
P |= F_C
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user