Previous 15994 Revisions Next

r15089 Thursday 3rd May, 2012 at 21:43:01 UTC by Michael Zapf
ti99: Fixed MBX cartridge emulation (copy-paste error, missing null pointer check) [Michael Zapf] (nw)
[src/mess/machine/ti99]gromport.c

src/mess/machine/ti99/gromport.c
r15088r15089
154154}
155155
156156cartridge_pcb_superspace_device::cartridge_pcb_superspace_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
157: cartridge_pcb_device(mconfig, TICARTPCBMIN, "SuperSpace II cartridge PCB", tag, owner, clock)
157: cartridge_pcb_device(mconfig, TICARTPCBSUP, "SuperSpace II cartridge PCB", tag, owner, clock)
158158{
159159}
160160
161161cartridge_pcb_mbx_device::cartridge_pcb_mbx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
162: cartridge_pcb_device(mconfig, TICARTPCBMIN, "MBX cartridge PCB", tag, owner, clock)
162: cartridge_pcb_device(mconfig, TICARTPCBMBX, "MBX cartridge PCB", tag, owner, clock)
163163{
164164}
165165
r15088r15089
469469      }
470470      else
471471      {
472         *value = m_rom_ptr[(offset & 0x1fff) | (m_rom_page<<13)];
472         if (m_rom_ptr!=NULL)
473            *value = m_rom_ptr[(offset & 0x1fff) | (m_rom_page<<13)];
473474      }
474475   }
475476}
476477
477/* Write function for the super cartridge. */
478/* Write function for the mbx cartridge. */
478479WRITE8_MEMBER(cartridge_pcb_mbx_device::write)
479480{
480481   if ((offset & GROM_MASK)==GROM_AREA)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team