mirror of
https://github.com/holub/mame
synced 2025-05-25 23:35:26 +03:00
Fixed MSVC build.
This commit is contained in:
parent
c51290fa1a
commit
e4f2c2494c
@ -380,15 +380,15 @@ static void tms57002_opc_write_c(tms57002_t *s, UINT32 opcode, UINT32 v)
|
||||
{
|
||||
if(opcode & 0x400) {
|
||||
if(opcode & 0x100)
|
||||
return tms57002_write_c(s, opcode & 0xff, v);
|
||||
tms57002_write_c(s, opcode & 0xff, v);
|
||||
else if(opcode & 0x80)
|
||||
return tms57002_write_c(s, s->ca++, v);
|
||||
tms57002_write_c(s, s->ca++, v);
|
||||
else
|
||||
return tms57002_write_c(s, s->ca, v);
|
||||
tms57002_write_c(s, s->ca, v);
|
||||
} else if(opcode & 0x200)
|
||||
return tms57002_write_c(s, s->ca++, v);
|
||||
tms57002_write_c(s, s->ca++, v);
|
||||
else
|
||||
return tms57002_write_c(s, s->ca, v);
|
||||
tms57002_write_c(s, s->ca, v);
|
||||
}
|
||||
|
||||
static UINT32 tms57002_opc_read_c(tms57002_t *s, UINT32 opcode)
|
||||
@ -1081,7 +1081,7 @@ void tms57002_execute(tms57002_t *s)
|
||||
}
|
||||
}
|
||||
|
||||
static inline int xmode(UINT32 opcode, char type)
|
||||
INLINE int xmode(UINT32 opcode, char type)
|
||||
{
|
||||
if(((opcode & 0x400) && (type == 'c')) || (!(opcode & 0x400) && (type == 'd'))) {
|
||||
if(opcode & 0x100)
|
||||
@ -1096,42 +1096,42 @@ static inline int xmode(UINT32 opcode, char type)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static inline int sfao(UINT32 st1)
|
||||
INLINE int sfao(UINT32 st1)
|
||||
{
|
||||
return st1 & ST1_SFAO ? 1 : 0;
|
||||
}
|
||||
|
||||
static inline int dbp(UINT32 st1)
|
||||
INLINE int dbp(UINT32 st1)
|
||||
{
|
||||
return st1 & ST1_DBP ? 1 : 0;
|
||||
}
|
||||
|
||||
static inline int crm(UINT32 st1)
|
||||
INLINE int crm(UINT32 st1)
|
||||
{
|
||||
return (st1 & ST1_CRM) >> ST1_CRM_SHIFT;
|
||||
}
|
||||
|
||||
static inline int sfai(UINT32 st1)
|
||||
INLINE int sfai(UINT32 st1)
|
||||
{
|
||||
return st1 & ST1_SFAI ? 1 : 0;
|
||||
}
|
||||
|
||||
static inline int sfmo(UINT32 st1)
|
||||
INLINE int sfmo(UINT32 st1)
|
||||
{
|
||||
return (st1 & ST1_SFMO) >> ST1_SFMO_SHIFT;
|
||||
}
|
||||
|
||||
static inline int rnd(UINT32 st1)
|
||||
INLINE int rnd(UINT32 st1)
|
||||
{
|
||||
return (st1 & ST1_RND) >> ST1_RND_SHIFT;
|
||||
}
|
||||
|
||||
static inline int movm(UINT32 st1)
|
||||
INLINE int movm(UINT32 st1)
|
||||
{
|
||||
return st1 & ST1_MOVM ? 1 : 0;
|
||||
}
|
||||
|
||||
static inline int sfma(UINT32 st1)
|
||||
INLINE int sfma(UINT32 st1)
|
||||
{
|
||||
return (st1 & ST1_SFMA) >> ST1_SFMA_SHIFT;
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ const static pdesc pp_r[] = {
|
||||
{ "wd", 1, PWD },
|
||||
{ "b", 1, PB },
|
||||
{ "sfai", 2, SFAI },
|
||||
{ }
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
instr cat1[0x40], cat2[0x80], cat3[0x80];
|
||||
@ -93,7 +93,7 @@ vinfo vinf[] = {
|
||||
{ I_RND, 8, "rnd", "rnd(s->st1)" },
|
||||
{ I_MOVM, 2, "movm", "movm(s->st1)" },
|
||||
{ I_SFMA, 4, "sfma", "sfma(s->st1)" },
|
||||
{ }
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
char *sconcat(char *dest, const char *src)
|
||||
@ -156,7 +156,7 @@ void load(const char *fname)
|
||||
p = buf;
|
||||
while(*p == ' ' || *p == '\t')
|
||||
p++;
|
||||
i->dasm = strdup(p);
|
||||
i->dasm = _strdup(p);
|
||||
}
|
||||
} else {
|
||||
char *name=0, *cat=0, *id=0, *cyc=0, *rep=0, *type=0;
|
||||
@ -224,7 +224,7 @@ void load(const char *fname)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
i->name = strdup(name);
|
||||
i->name = _strdup(name);
|
||||
i->line = line;
|
||||
i->cycles = strtol(cyc, 0, 10);
|
||||
i->flags = flags;
|
||||
@ -403,7 +403,7 @@ void save_dasm_cat(FILE *f, const char *def, instr *il, int count)
|
||||
{ "c", 0, PC },
|
||||
{ "d", 0, PD },
|
||||
{ "i", 0, PI },
|
||||
{ }
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
int i;
|
||||
@ -630,7 +630,7 @@ void cintrp_expand(char **p, int s, int e, const int *cv)
|
||||
break;
|
||||
|
||||
case PC: {
|
||||
const char *r;
|
||||
const char *r = NULL;
|
||||
if(cv[IxCMODE] == 0)
|
||||
r = "s->cmem[i->param]";
|
||||
else if(cv[IxCMODE] == 1)
|
||||
@ -818,7 +818,7 @@ void save_cintrp_cat(FILE *f, instr *il, int count)
|
||||
for(i=0; i != count; i++)
|
||||
if(il[i].run) {
|
||||
int cv[IxCOUNT];
|
||||
int j, k;
|
||||
int j, k = 0;
|
||||
unsigned int flags = il[i].flags;
|
||||
char buf[16384];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user