games/gb: minor style fixes

This commit is contained in:
Michael Forney 2021-02-05 23:19:23 +00:00
parent d5368b0799
commit 27fe8ee356

View file

@ -473,13 +473,13 @@ memread(u16int a)
return mapper(READ, a);
case 12: case 14:
return wram[a & 0xfff];
case 13:
return wramb[a & 0xfff];
case 15:
if(a >= 0xff00)
return regread(a);
else if(a >= 0xfe00)
return oam[a - 0xfe00];
case 13:
return wramb[a & 0xfff];
}
return 0xff;
}
@ -504,16 +504,15 @@ memwrite(u16int a, u8int v)
case 12: case 14:
wram[a & 0xfff] = v;
return;
case 15:
if(a >= 0xff00){
regwrite(a, v);
return;
}else if(a >= 0xfe00){
oam[a - 0xfe00] = v;
return;
}
case 13:
wramb[a & 0xfff] = v;
return;
case 15:
if(a >= 0xff00)
regwrite(a, v);
else if(a >= 0xfe00)
oam[a - 0xfe00] = v;
return;
}
}