src/mess/includes/abc80.h
| r15726 | r15727 | |
| 21 | 21 | #include "machine/abc_sio.h" |
| 22 | 22 | #include "machine/lux10828.h" |
| 23 | 23 | #include "machine/ram.h" |
| 24 | #include "machine/serial.h" |
| 24 | 25 | #include "machine/z80pio.h" |
| 25 | 26 | #include "sound/sn76477.h" |
| 26 | 27 | |
| r15726 | r15727 | |
| 60 | 61 | #define Z80PIO_TAG "cd67" |
| 61 | 62 | #define SN76477_TAG "g8" |
| 62 | 63 | #define ABCBUS_TAG "abcbus" |
| 64 | #define RS232_TAG "ser" |
| 63 | 65 | #define TIMER_CASSETTE_TAG "cass" |
| 64 | 66 | |
| 65 | 67 | class abc80_state : public driver_device |
| r15726 | r15727 | |
| 72 | 74 | m_psg(*this, SN76477_TAG), |
| 73 | 75 | m_cassette(*this, CASSETTE_TAG), |
| 74 | 76 | m_bus(*this, ABCBUS_TAG), |
| 77 | m_kb(*this, ABC80_KEYBOARD_TAG), |
| 75 | 78 | m_ram(*this, RAM_TAG), |
| 79 | m_rs232(*this, RS232_TAG), |
| 76 | 80 | m_cassette_timer(*this, TIMER_CASSETTE_TAG), |
| 77 | 81 | m_tape_in(1), |
| 78 | 82 | m_tape_in_latch(1) |
| r15726 | r15727 | |
| 83 | 87 | required_device<device_t> m_psg; |
| 84 | 88 | required_device<cassette_image_device> m_cassette; |
| 85 | 89 | required_device<abcbus_slot_device> m_bus; |
| 90 | required_device<abc80_keyboard_device> m_kb; |
| 86 | 91 | required_device<ram_device> m_ram; |
| 92 | required_device<rs232_port_device> m_rs232; |
| 87 | 93 | required_device<timer_device> m_cassette_timer; |
| 88 | 94 | |
| 89 | 95 | virtual void machine_start(); |
| r15726 | r15727 | |
| 101 | 107 | DECLARE_READ8_MEMBER( pio_pa_r ); |
| 102 | 108 | DECLARE_READ8_MEMBER( pio_pb_r ); |
| 103 | 109 | DECLARE_WRITE8_MEMBER( pio_pb_w ); |
| 110 | |
| 111 | DECLARE_WRITE_LINE_MEMBER( keydown_w ); |
| 104 | 112 | |
| 105 | 113 | // keyboard state |
| 106 | 114 | int m_key_data; |