Make gcc happy (and fix a potential issue)
This commit is contained in:
parent
667f655d22
commit
6d5658eb68
@ -329,6 +329,7 @@ uint8_t cpu_readport(uint8_t port)
|
||||
int w1,w2;
|
||||
uint8_t retVal = 0;
|
||||
|
||||
/*
|
||||
if (port > 0x100)
|
||||
{
|
||||
port &= 0xFF;
|
||||
@ -337,7 +338,7 @@ uint8_t cpu_readport(uint8_t port)
|
||||
return 0x00;
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
switch (port)
|
||||
{
|
||||
@ -1046,6 +1047,7 @@ void cpu_writeport(uint32_t port,uint8_t value)
|
||||
}
|
||||
fflush(stdout);
|
||||
}
|
||||
break;
|
||||
|
||||
case 0xca:
|
||||
if(value==0x15)
|
||||
|
||||
@ -3889,7 +3889,7 @@ void nec_set_reg(int regnum, uint32_t val)
|
||||
}
|
||||
}
|
||||
|
||||
char *instructionsName[256] =
|
||||
const char *instructionsName[256] =
|
||||
{
|
||||
"ADD ", "ADD ", "ADD ", "ADD ", "ADD ", "ADD ", "PUSH", "POP ", "OR ", "OR ", "OR ", "OR ", "OR ", "OR ", "PUSH", "----",
|
||||
"ADC ", "ADC ", "ADC ", "ADC ", "ADC ", "ADC ", "PUSH", "POP ", "SBB ", "SBB ", "SBB ", "SBB ", "SBB ", "SBB ", "PUSH", "POP ",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user