The SNES CX4 somehow managed to escape being converted to C++ properly. It’s in these files:
src/mame/machine/snescx4.h
src/mame/machine/snescx4.cpp
src/mame/machine/cx4data.hxx
src/mame/machine/cx4fn.hxx
src/mame/machine/cx4oam.hxx
src/mame/machine/cx4ops.hxx
The entire state is kept in a file static instance of the CX4 class in snescx4.cpp called cx4, reminiscent of the old approach of using static variables for everything before MAME had devices. The code is all static functions that work on the static instance of the state class.
This really needs to be turned into something that’s instantiated as needed, preferably in the form of a device. It should be relatively easy to turn into a device, given the entry points are a read/write handler pair.
The SNES CX4 somehow managed to escape being converted to C++ properly. It’s in these files:
The entire state is kept in a file static instance of the
CX4
class in snescx4.cpp calledcx4
, reminiscent of the old approach of using static variables for everything before MAME had devices. The code is all static functions that work on the static instance of the state class.This really needs to be turned into something that’s instantiated as needed, preferably in the form of a device. It should be relatively easy to turn into a device, given the entry points are a read/write handler pair.