From 08b49f7d48c7d7e63b728c38405b15be646e84d3 Mon Sep 17 00:00:00 2001 From: 0kmg <9137159+0kmg@users.noreply.github.com> Date: Tue, 15 Feb 2022 04:32:25 -0900 Subject: 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] --- src/devices/bus/nes_ctrl/ctrl.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/devices/bus/nes_ctrl/ctrl.cpp') 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); +} -- cgit v1.2.3-70-g09d2