src/mess/drivers/phunsy.c
| r14914 | r14915 | |
| 23 | 23 | public: |
| 24 | 24 | phunsy_state(const machine_config &mconfig, device_type type, const char *tag) |
| 25 | 25 | : 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) { } |
| 30 | 28 | |
| 31 | 29 | required_device<cpu_device> m_maincpu; |
| 32 | 30 | required_device<device_t> m_speaker; |
| r14914 | r14915 | |
| 36 | 34 | DECLARE_WRITE8_MEMBER( phunsy_ctrl_w ); |
| 37 | 35 | DECLARE_WRITE8_MEMBER( phunsy_data_w ); |
| 38 | 36 | DECLARE_WRITE8_MEMBER( kbd_put ); |
| 39 | | required_shared_ptr<const UINT8> m_p_videoram; |
| 37 | const UINT8 *m_videoram; |
| 40 | 38 | const UINT8 *m_p_chargen; |
| 41 | 39 | UINT8 m_data_out; |
| 42 | 40 | UINT8 m_keyboard_input; |
| r14914 | r14915 | |
| 60 | 58 | ADDRESS_MAP_UNMAP_HIGH |
| 61 | 59 | AM_RANGE( 0x0000, 0x07ff) AM_ROM |
| 62 | 60 | 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 |
| 64 | 62 | AM_RANGE( 0x1800, 0x1fff) AM_RAM_WRITE( phunsy_1800_w ) AM_ROMBANK("bank1") // Banked RAM/ROM |
| 65 | 63 | AM_RANGE( 0x4000, 0xffff) AM_RAMBANK("bank2") // Banked RAM |
| 66 | 64 | ADDRESS_MAP_END |
| r14914 | r14915 | |
| 222 | 220 | |
| 223 | 221 | for (x = ma; x < ma+64; x++) |
| 224 | 222 | { |
| 225 | | chr = m_p_videoram[x]; |
| 223 | chr = m_videoram[x]; |
| 226 | 224 | |
| 227 | 225 | if (BIT(chr, 7)) |
| 228 | 226 | { |