summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes_ctrl/ctrl.cpp
diff options
context:
space:
mode:
author 0kmg <9137159+0kmg@users.noreply.github.com>2022-02-15 04:32:25 -0900
committer GitHub <noreply@github.com>2022-02-15 08:32:25 -0500
commit08b49f7d48c7d7e63b728c38405b15be646e84d3 (patch)
treecb83691006c68cf7262dc1b1131114d4b892972d /src/devices/bus/nes_ctrl/ctrl.cpp
parent25c99d94506b2ce1e0218332aeefcfb7da02f09a (diff)
famibox.cpp: Various improvements and a new working clone. (#9299)
* famibox.cpp: Added NES controller slots. - Added r/w of zapper enable bit through appropriate ports. Controllers and zapper now pass the internal self-test. - Shrunk nametable RAM down to correct 2K (mirroring still not correctly implemented). * New working clones ------------------ FamicomStation [Patnukem]
Diffstat (limited to 'src/devices/bus/nes_ctrl/ctrl.cpp')
-rw-r--r--src/devices/bus/nes_ctrl/ctrl.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/devices/bus/nes_ctrl/ctrl.cpp b/src/devices/bus/nes_ctrl/ctrl.cpp
index d659053bcb0..57d12e28cfe 100644
--- a/src/devices/bus/nes_ctrl/ctrl.cpp
+++ b/src/devices/bus/nes_ctrl/ctrl.cpp
@@ -234,3 +234,14 @@ void fc_expansion_devices(device_slot_interface &device)
device.option_add("taptapmat", NES_TAPTAPMAT);
device.option_add("turbofile", NES_TURBOFILE);
}
+
+void famibox_control_port12_devices(device_slot_interface &device)
+{
+ device.option_add("joypad", NES_JOYPAD);
+ device.option_add("zapper", NES_ZAPPER);
+}
+
+void famibox_control_port3_devices(device_slot_interface &device)
+{
+ device.option_add("zapper", NES_ZAPPER);
+}