Start undoing C++ comments
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "mapinc.h"
|
||||
|
||||
static uint8 IRQCount; //, IRQPre;
|
||||
static uint8 IRQCount; /*, IRQPre; */
|
||||
static uint8 IRQa;
|
||||
static uint8 prg_reg[2];
|
||||
static uint8 chr_reg[8];
|
||||
@@ -38,16 +38,17 @@ static SFORMAT StateRegs[] =
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
/*
|
||||
#if 0
|
||||
static void UNLAX5705IRQ(void) {
|
||||
if(IRQa) {
|
||||
IRQCount++;
|
||||
if(IRQCount>=238) {
|
||||
X6502_IRQBegin(FCEU_IQEXT);
|
||||
// IRQa=0;
|
||||
/* IRQa=0; */
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
#endif
|
||||
|
||||
static void Sync(void) {
|
||||
int i;
|
||||
@@ -61,14 +62,16 @@ static void Sync(void) {
|
||||
}
|
||||
|
||||
static DECLFW(UNLAX5705Write) {
|
||||
// if((A>=0xA008)&&(A<=0xE003)) {
|
||||
// int ind=(((A>>11)-6)|(A&1))&7;
|
||||
// int sar=((A&2)<<1);
|
||||
// chr_reg[ind]=(chr_reg[ind]&(0xF0>>sar))|((V&0x0F)<<sar);
|
||||
// SyncChr();
|
||||
// } else
|
||||
#if 0
|
||||
if((A>=0xA008)&&(A<=0xE003)) {
|
||||
int ind=(((A>>11)-6)|(A&1))&7;
|
||||
int sar=((A&2)<<1);
|
||||
chr_reg[ind]=(chr_reg[ind]&(0xF0>>sar))|((V&0x0F)<<sar);
|
||||
SyncChr();
|
||||
} else
|
||||
#endif
|
||||
switch (A & 0xF00F) {
|
||||
case 0x8000: prg_reg[0] = ((V & 2) << 2) | ((V & 8) >> 2) | (V & 5); break; // EPROM dump have mixed PRG and CHR banks, data lines to mapper seems to be mixed
|
||||
case 0x8000: prg_reg[0] = ((V & 2) << 2) | ((V & 8) >> 2) | (V & 5); break; /* EPROM dump have mixed PRG and CHR banks, data lines to mapper seems to be mixed */
|
||||
case 0x8008: mirr = V & 1; break;
|
||||
case 0xA000: prg_reg[1] = ((V & 2) << 2) | ((V & 8) >> 2) | (V & 5); break;
|
||||
case 0xA008: chr_reg[0] = (chr_reg[0] & 0xF0) | (V & 0x0F); break;
|
||||
@@ -87,8 +90,10 @@ static DECLFW(UNLAX5705Write) {
|
||||
case 0xE001: chr_reg[6] = (chr_reg[6] & 0x0F) | ((((V & 4) >> 1) | ((V & 2) << 1) | (V & 0x09)) << 4); break;
|
||||
case 0xE002: chr_reg[7] = (chr_reg[7] & 0xF0) | (V & 0x0F); break;
|
||||
case 0xE003: chr_reg[7] = (chr_reg[7] & 0x0F) | ((((V & 4) >> 1) | ((V & 2) << 1) | (V & 0x09)) << 4); break;
|
||||
// case 0x800A: X6502_IRQEnd(FCEU_IQEXT); IRQa=0; break;
|
||||
// case 0xE00B: X6502_IRQEnd(FCEU_IQEXT); IRQa=IRQCount=V; /*if(scanline<240) IRQCount-=8; else IRQCount+=4;*/ break;
|
||||
#if 0
|
||||
case 0x800A: X6502_IRQEnd(FCEU_IQEXT); IRQa=0; break;
|
||||
case 0xE00B: X6502_IRQEnd(FCEU_IQEXT); IRQa=IRQCount=V; /*if(scanline<240) IRQCount-=8; else IRQCount+=4;*/ break;
|
||||
#endif
|
||||
}
|
||||
Sync();
|
||||
}
|
||||
@@ -105,7 +110,7 @@ static void StateRestore(int version) {
|
||||
|
||||
void UNLAX5705_Init(CartInfo *info) {
|
||||
info->Power = UNLAX5705Power;
|
||||
// GameHBIRQHook=UNLAX5705IRQ;
|
||||
/* GameHBIRQHook=UNLAX5705IRQ; */
|
||||
GameStateRestore = StateRestore;
|
||||
AddExState(&StateRegs, ~0, 0, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user