summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/kaiser.cpp
diff options
context:
space:
mode:
author 0kmg <9137159+0kmg@users.noreply.github.com>2021-08-04 08:04:08 -0800
committer GitHub <noreply@github.com>2021-08-05 02:04:08 +1000
commitad4f91176b615af9b9bc9fdc3918e276296ddfeb (patch)
tree0779bd34b89903e9e49666503b9c3d29c6ab8de5 /src/devices/bus/nes/kaiser.cpp
parent3912610866d933ed05fc1b21cd9f771a66f7e4fc (diff)
bus/nes: Added support for a Kaiser 4-in-1 cart. (#8390)
New working software list additions (nes.xml) ----------------------------------- 4 in 1 (KS-106C)
Diffstat (limited to 'src/devices/bus/nes/kaiser.cpp')
-rw-r--r--src/devices/bus/nes/kaiser.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/devices/bus/nes/kaiser.cpp b/src/devices/bus/nes/kaiser.cpp
index 9606e7d84ef..1c55db49171 100644
--- a/src/devices/bus/nes/kaiser.cpp
+++ b/src/devices/bus/nes/kaiser.cpp
@@ -8,6 +8,7 @@
Here we emulate the following Kaiser bootleg PCBs
+ * Kaiser KS106C
* Kaiser KS202
* Kaiser KS7010
* Kaiser KS7012
@@ -44,6 +45,7 @@
// constructor
//-------------------------------------------------
+DEFINE_DEVICE_TYPE(NES_KS106C, nes_ks106c_device, "nes_ks106c", "NES Cart Kaiser KS-106C PCB")
DEFINE_DEVICE_TYPE(NES_KS202, nes_ks202_device, "nes_ks202", "NES Cart Kaiser KS-202 PCB")
DEFINE_DEVICE_TYPE(NES_KS7010, nes_ks7010_device, "nes_ks7010", "NES Cart Kaiser KS-7010 PCB")
DEFINE_DEVICE_TYPE(NES_KS7012, nes_ks7012_device, "nes_ks7012", "NES Cart Kaiser KS-7012 PCB")
@@ -61,6 +63,11 @@ DEFINE_DEVICE_TYPE(NES_KS7057, nes_ks7057_device, "nes_ks7057", "NES Cart Kai
DEFINE_DEVICE_TYPE(NES_KS7058, nes_ks7058_device, "nes_ks7058", "NES Cart Kaiser KS-7058 PCB")
+nes_ks106c_device::nes_ks106c_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
+ : nes_nrom_device(mconfig, NES_KS106C, tag, owner, clock), m_latch(0)
+{
+}
+
nes_ks7058_device::nes_ks7058_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: nes_nrom_device(mconfig, NES_KS7058, tag, owner, clock)
{
@@ -149,6 +156,20 @@ nes_ks7057_device::nes_ks7057_device(const machine_config &mconfig, const char *
+void nes_ks106c_device::device_start()
+{
+ common_start();
+ save_item(NAME(m_latch));
+}
+
+void nes_ks106c_device::pcb_reset()
+{
+ prg32(m_latch);
+ chr8(m_latch, CHRROM);
+ set_nt_mirroring(BIT(m_latch, 0) ? PPU_MIRROR_VERT : PPU_MIRROR_HORZ);
+ m_latch = (m_latch + 1) & 0x03;
+}
+
void nes_ks7058_device::device_start()
{
common_start();
@@ -373,6 +394,21 @@ void nes_ks7057_device::pcb_reset()
/*-------------------------------------------------
+ Kaiser Board KS106C
+
+ Games: 4 in 1
+
+ No need to use handlers. At reset the banks change
+ and so does the game.
+
+ NES 2.0: mapper 352
+
+ In MAME: Supported.
+
+ -------------------------------------------------*/
+
+/*-------------------------------------------------
+
Kaiser Board KS7058
Games: Tui Do Woo Ma Jeung