Add mapper 379.
This commit is contained in:
32
src/boards/379.c
Normal file
32
src/boards/379.c
Normal file
@@ -0,0 +1,32 @@
|
||||
/* FCE Ultra - NES/Famicom Emulator
|
||||
*
|
||||
* Copyright notice for this file:
|
||||
* Copyright (C) 2025 NewRisingSun
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "mapinc.h"
|
||||
#include "asic_latch.h"
|
||||
|
||||
static void sync () {
|
||||
setprg32(0x8000, Latch_data &0x03);
|
||||
setchr8(Latch_data >>2);
|
||||
}
|
||||
|
||||
void Mapper379_Init (CartInfo *info) {
|
||||
Latch_init(info, sync, 0x8000, 0xFFFF, NULL);
|
||||
info->Reset = Latch_clear;
|
||||
}
|
||||
@@ -821,6 +821,7 @@ INES_BOARD_BEGIN()
|
||||
INES_BOARD( "YY841155C", 376, Mapper376_Init )
|
||||
INES_BOARD( "JY-111/JY-112", 377, Mapper377_Init )
|
||||
INES_BOARD( "8-in-1 AOROM+UNROM", 378, Mapper378_Init )
|
||||
INES_BOARD( "35BH-1", 379, Mapper379_Init )
|
||||
INES_BOARD( "42 to 80,000 (970630C)", 380, Mapper380_Init )
|
||||
INES_BOARD( "KN-42", 381, Mapper381_Init )
|
||||
INES_BOARD( "830928C", 382, Mapper382_Init )
|
||||
|
||||
@@ -303,6 +303,7 @@ void Mapper375_Init(CartInfo *);
|
||||
void Mapper376_Init(CartInfo *);
|
||||
void Mapper377_Init(CartInfo *);
|
||||
void Mapper378_Init(CartInfo *);
|
||||
void Mapper379_Init(CartInfo *);
|
||||
void Mapper380_Init(CartInfo *);
|
||||
void Mapper381_Init(CartInfo *);
|
||||
void Mapper382_Init(CartInfo *);
|
||||
|
||||
Reference in New Issue
Block a user