Previous 15994 Revisions Next

r14915 Saturday 14th April, 2012 at 13:34:23 UTC by Wilbert Pol
phunsy.c: Fixed regression (nw)
[src/mess/drivers]phunsy.c

src/mess/drivers/phunsy.c
r14914r14915
2323public:
2424   phunsy_state(const machine_config &mconfig, device_type type, const char *tag)
2525      : driver_device(mconfig, type, tag),
26   m_maincpu(*this, "maincpu"),
27   m_speaker(*this, SPEAKER_TAG)
28   ,
29      m_p_videoram(*this, "p_videoram"){ }
26      m_maincpu(*this, "maincpu"),
27      m_speaker(*this, SPEAKER_TAG) { }
3028
3129   required_device<cpu_device> m_maincpu;
3230   required_device<device_t> m_speaker;
r14914r14915
3634   DECLARE_WRITE8_MEMBER( phunsy_ctrl_w );
3735   DECLARE_WRITE8_MEMBER( phunsy_data_w );
3836   DECLARE_WRITE8_MEMBER( kbd_put );
39   required_shared_ptr<const UINT8> m_p_videoram;
37   const UINT8 *m_videoram;
4038   const UINT8   *m_p_chargen;
4139   UINT8      m_data_out;
4240   UINT8      m_keyboard_input;
r14914r14915
6058   ADDRESS_MAP_UNMAP_HIGH
6159   AM_RANGE( 0x0000, 0x07ff) AM_ROM
6260   AM_RANGE( 0x0800, 0x0fff) AM_RAM
63   AM_RANGE( 0x1000, 0x17ff) AM_RAM AM_BASE(m_p_videoram ) // Video RAM
61   AM_RANGE( 0x1000, 0x17ff) AM_RAM AM_BASE(m_videoram ) // Video RAM
6462   AM_RANGE( 0x1800, 0x1fff) AM_RAM_WRITE( phunsy_1800_w ) AM_ROMBANK("bank1")   // Banked RAM/ROM
6563   AM_RANGE( 0x4000, 0xffff) AM_RAMBANK("bank2") // Banked RAM
6664ADDRESS_MAP_END
r14914r14915
222220
223221         for (x = ma; x < ma+64; x++)
224222         {
225            chr = m_p_videoram[x];
223            chr = m_videoram[x];
226224
227225            if (BIT(chr, 7))
228226            {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team