games/snes: bug fixes

This commit is contained in:
aiju 2014-03-16 09:52:38 +01:00
parent 74778941ed
commit 2fb68b6338
2 changed files with 3 additions and 3 deletions

View file

@ -342,7 +342,7 @@ regwrite(u16int p, u8int v)
vtime = vtime & 0xff | (v & 1) << 8;
break;
case 0x420b:
dma |= v & ~reg[0x420c];
dma |= v & ~(reg[0x420c] & ~hdma >> 24);
break;
case 0x4210:
return;

View file

@ -280,8 +280,8 @@ redo:
p->t = tile(n, p->tx, p->ty);
chr(n, nb, p->sz, p->t, p->tnx, p->tny, p->c);
p->pal = palette(n, p->t >> 10 & 7);
if(p->tnx != 0)
shift(p->c, nb, p->tnx, p->t & 0x4000);
if((p->tnx & 7) != 0)
shift(p->c, nb, p->tnx & 7, p->t & 0x4000);
if(p->msz != 1 && p->mx != 0 && sx % p->msz == 0){
p->mv = bgpixel(p->c, nb, p->t & 0x4000);
if(p->tnx + p->mx >= 8){