fc: use hkrom for mmc6

このコミットが含まれているのは:
encoded-byte 2022-01-01 11:51:35 +01:00 committed by Luke Usher
コミット bed4ce3659
3個のファイルの変更82行の追加8行の削除

ファイルの表示

@ -31,8 +31,9 @@ struct HVC_HKROM : Interface { //MMC6
if(!(characterAddress & 0x1000) && (address & 0x1000)) {
if(irqDelay == 0) {
if(irqCounter == 0) {
irqCounter = irqLatch;
} else if(--irqCounter == 0) {
irqCounter = irqLatch + 1;
}
if(--irqCounter == 0) {
if(irqEnable) irqLine = 1;
}
}
@ -64,6 +65,7 @@ struct HVC_HKROM : Interface { //MMC6
}
auto writePRG(n32 address, n8 data) -> void override {
if(address == 0x2006 && ++characterLatch) irqTest(data << 8);
if(address < 0x7000) return;
if(address < 0x8000) {
@ -179,6 +181,7 @@ struct HVC_HKROM : Interface { //MMC6
s(irqEnable);
s(irqDelay);
s(irqLine);
s(characterLatch);
s(characterAddress);
}
@ -194,7 +197,8 @@ struct HVC_HKROM : Interface { //MMC6
n8 irqLatch;
n8 irqCounter;
n1 irqEnable;
n1 irqDelay;
n8 irqDelay;
n1 irqLine;
n1 characterLatch;
n16 characterAddress;
};

ファイルの表示

@ -17994,6 +17994,56 @@ game
content: Character
volatile
game
sha256: 7ff16ac31650db5d353a7c77349e916c71cd104b3fb8e97df3d9da35af248644
name: StarTropics (Europe)
title: StarTropics (Europe)
region: PAL
board: HVC-HKROM
chip
type: MMC6
memory
type: ROM
size: 0x10
content: iNES
memory
type: ROM
size: 0x40000
content: Program
memory
type: RAM
size: 0x400
content: Save
memory
type: ROM
size: 0x40000
content: Character
game
sha256: 69de2c7552fa81ca5921da0e457abf1be35f18ffbad159788a76141be59c9f6b
name: StarTropics (USA)
title: StarTropics (USA)
region: NTSC-U
board: HVC-HKROM
chip
type: MMC6
memory
type: ROM
size: 0x10
content: iNES
memory
type: ROM
size: 0x40000
content: Program
memory
type: RAM
size: 0x400
content: Save
memory
type: ROM
size: 0x40000
content: Character
game
sha256: 2ce85b82b427de187b59b62d33081497acfa2010ef38660b157f8eb008336e6e
name: Stick Hunter - Exciting Ice Hockey (Japan)
@ -21045,6 +21095,31 @@ game
size: 0x2000
content: Character
game
sha256: d0850075065ecbd125a33accc952de5d012527be45aa14a1b8223a9adf1643ae
name: Zoda's Revenge - StarTropics II (USA)
title: Zoda's Revenge - StarTropics II (USA)
region: NTSC-U
board: HVC-HKROM
chip
type: MMC6
memory
type: ROM
size: 0x10
content: iNES
memory
type: ROM
size: 0x40000
content: Program
memory
type: RAM
size: 0x400
content: Save
memory
type: ROM
size: 0x40000
content: Character
game
sha256: 6f5190caa0ef0a6e815ac044fbbba970a6aea4ef4899ddc46047dad08aedc984
name: Zoids - Chuuou Tairiku no Tatakai (Japan)

ファイルの表示

@ -173,14 +173,9 @@ auto Famicom::analyzeINES(vector<u8>& data) -> string {
break;
case 4:
//MMC3
s += " board: HVC-TLROM\n";
s += " chip type=MMC3B\n";
prgram = 8192;
//MMC6
//s += " board: HVC-HKROM\n";
//s += " chip type=MMC6\n";
//prgram = 1024;
break;
case 5: