games/md: small fixes
This commit is contained in:
parent
37a5b4e9c3
commit
e30fc1fbdf
2 changed files with 3 additions and 3 deletions
|
@ -509,7 +509,7 @@ step(void)
|
||||||
int n, m, d;
|
int n, m, d;
|
||||||
static int cnt;
|
static int cnt;
|
||||||
|
|
||||||
if(0 && pc == 0x1300){
|
if(0 && pc == 0x23000000){
|
||||||
trace++;
|
trace++;
|
||||||
print("%x\n", curpc);
|
print("%x\n", curpc);
|
||||||
}
|
}
|
||||||
|
@ -894,7 +894,7 @@ step(void)
|
||||||
case 0x4e75: pc = pop32(); tim += 16; break; /* RTS */
|
case 0x4e75: pc = pop32(); tim += 16; break; /* RTS */
|
||||||
case 0x4e76: if((rS & FLAGV) != 0) trap(7, curpc); tim += 4; break; /* TRAPV */
|
case 0x4e76: if((rS & FLAGV) != 0) trap(7, curpc); tim += 4; break; /* TRAPV */
|
||||||
case 0x4e77: /* RTR */
|
case 0x4e77: /* RTR */
|
||||||
rS = rS & 0xff00 | fetch16() & 0xff;
|
rS = rS & 0xff00 | pop16() & 0xff;
|
||||||
pc = pop32();
|
pc = pop32();
|
||||||
tim += 20;
|
tim += 20;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -326,7 +326,7 @@ vdpstep(void)
|
||||||
if(vdpy == 0 || vdpy >= 225)
|
if(vdpy == 0 || vdpy >= 225)
|
||||||
hctr = reg[HORCTR];
|
hctr = reg[HORCTR];
|
||||||
else
|
else
|
||||||
if(--hctr == 0){
|
if(hctr-- == 0){
|
||||||
if((reg[MODE1] & IE1) != 0)
|
if((reg[MODE1] & IE1) != 0)
|
||||||
irq |= INTHOR;
|
irq |= INTHOR;
|
||||||
hctr = reg[HORCTR];
|
hctr = reg[HORCTR];
|
||||||
|
|
Loading…
Reference in a new issue