- use shorter strings for state names
- make variables static
- turn C++ comments to C comments
- cleanup dead code in boards
This commit is contained in:
negativeExponent
2020-01-24 19:43:40 +08:00
parent fb516c853a
commit dc85a40951
9 changed files with 115 additions and 144 deletions

View File

@@ -30,8 +30,9 @@ static SFORMAT StateRegs[] =
{ 0 }
};
// submapper 1 The code for the original fceux
// submapper 0 new HP898F code by dragon2snow,loong2snow from www.nesbbs.com
/* submapper 1 The code for the original fceux
* submapper 0 new HP898F code by dragon2snow,loong2snow from www.nesbbs.com
*/
static void Sync(void) {
if (_submapper == 1)
@@ -69,8 +70,8 @@ static DECLFW(HP898FWrite) {
static DECLFW(HP898FWriteEx) {
switch (A & 4) {
case 0: regs[0] = V; break;//CHR
case 4: regs[1] = (V & 0xC0) | ((V >> 2) & 6) | ((V & 0x20) ? 1 : 0); break;//PRG
case 0: regs[0] = V; break; /* CHR */
case 4: regs[1] = (V & 0xC0) | ((V >> 2) & 6) | ((V & 0x20) ? 1 : 0); break; /* PRG */
}
Sync();
}