📄 nes_uxrom.c
字号:
#include "..\..\DLL\d_UNIF.h"
#include "..\..\Hardware\h_74xx.h"
static void __cdecl SaveMI (Ar128 MI)
{
_74xx_SaveMI_D(MI,0);
}
static void __cdecl LoadMI (const Ar128 MI)
{
_74xx_LoadMI_D(MI,0);
}
static void Sync_UNROM (void)
{
MP->SetPRG_ROM16(0x8,_74xx.Data & 0x7);
MP->SetPRG_ROM16(0xC,0x7);
MP->SetCHR_RAM8(0,0);
}
static void Sync_UOROM (void)
{
MP->SetPRG_ROM16(0x8,_74xx.Data & 0xF);
MP->SetPRG_ROM16(0xC,0xF);
MP->SetCHR_RAM8(0,0);
}
static void __cdecl UnloadMapper (void)
{
_74xx_Destroy();
}
static void __cdecl InitMapper_UNROM (const PMapperParam _MP, int IsHardReset)
{
MP = _MP;
_74xx_Init(Sync_UNROM,IsHardReset,TRUE);
UNIF_SetMirroring(NULL);
}
static void __cdecl InitMapper_UOROM (const PMapperParam _MP, int IsHardReset)
{
MP = _MP;
_74xx_Init(Sync_UOROM,IsHardReset,TRUE);
UNIF_SetMirroring(NULL);
}
CTMapperInfo MapperInfo_NES_UNROM =
{
"NES-UNROM",
-1,
MS_Full,
16384,
InitMapper_UNROM,
UnloadMapper,
NULL,
NULL,
SaveMI,
LoadMI,
NULL,
NULL
};
CTMapperInfo MapperInfo_NES_UOROM =
{
"NES-UOROM",
-1,
MS_Full,
16384,
InitMapper_UOROM,
UnloadMapper,
NULL,
NULL,
SaveMI,
LoadMI,
NULL,
NULL
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -