Previous 199869 Revisions Next

r18729 Friday 26th October, 2012 at 22:26:47 UTC by Curt Coder
(MESS) c64: Fixed StarDOS cartridge. (nw)
[src/mess/machine]c64_stardos.c c64_stardos.h

trunk/src/mess/machine/c64_stardos.c
r18728r18729
191191
192192int c64_stardos_cartridge_device::c64_game_r(offs_t offset, int sphi2, int ba, int rw, int hiram)
193193{
194   return !(ba & rw & ((offset & 0xe000) == 0xe000) & hiram);
194   return !(sphi2 && ba & rw & ((offset & 0xe000) == 0xe000) & hiram);
195195}
196
197
198//-------------------------------------------------
199//  c64_exrom_r - EXROM read
200//-------------------------------------------------
201
202int c64_stardos_cartridge_device::c64_exrom_r(offs_t offset, int sphi2, int ba, int rw, int hiram)
203{
204   return (BIT(offset, 13)) ? 1 : m_exrom;
205}
trunk/src/mess/machine/c64_stardos.h
r18728r18729
4646   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, UINT8 data, int sphi2, int ba, int roml, int romh, int io1, int io2);
4747   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int sphi2, int ba, int roml, int romh, int io1, int io2);
4848   virtual int c64_game_r(offs_t offset, int sphi2, int ba, int rw, int hiram);
49   virtual int c64_exrom_r(offs_t offset, int sphi2, int ba, int rw, int hiram);
4950
5051private:
5152   inline void charge_io1_capacitor();

Previous 199869 Revisions Next


© 1997-2024 The MAME Team