trunk/src/mame/drivers/marywu.cpp
| r252979 | r252980 | |
| 36 | 36 | DECLARE_WRITE8_MEMBER(ay2_port_a_w); |
| 37 | 37 | DECLARE_WRITE8_MEMBER(ay2_port_b_w); |
| 38 | 38 | DECLARE_READ8_MEMBER(keyboard_r); |
| 39 | DECLARE_READ8_MEMBER(port_r); |
| 39 | 40 | private: |
| 40 | 41 | uint8_t m_selected_7seg_module; |
| 41 | 42 | }; |
| r252979 | r252980 | |
| 132 | 133 | m_selected_7seg_module = data; |
| 133 | 134 | } |
| 134 | 135 | |
| 136 | READ8_MEMBER( marywu_state::port_r ) |
| 137 | { |
| 138 | //TODO: figure out what each bit is mapped to in the 80c31 ports P1 and P3 |
| 139 | switch(offset){ |
| 140 | //case 1: |
| 141 | // return (1 << 6); |
| 142 | default: |
| 143 | return 0x00; |
| 144 | } |
| 145 | } |
| 146 | |
| 135 | 147 | READ8_MEMBER( marywu_state::keyboard_r ) |
| 136 | 148 | { |
| 137 | 149 | switch(m_selected_7seg_module % 8){ |
| r252979 | r252980 | |
| 165 | 177 | AM_RANGE(0x9002, 0x9002) AM_MIRROR(0x0ffc) AM_DEVWRITE("ay2", ay8910_device, data_address_w) |
| 166 | 178 | AM_RANGE(0x9003, 0x9003) AM_MIRROR(0x0ffc) AM_DEVREADWRITE("ay2", ay8910_device, data_r, data_w) |
| 167 | 179 | AM_RANGE(0xf000, 0xf000) AM_NOP /* TODO: Investigate this. There's something going on at this address range. */ |
| 168 | | AM_RANGE(MCS51_PORT_P0, MCS51_PORT_P3) AM_NOP /* FIX-ME! I am ignoring port accesses for a while. */ |
| 180 | AM_RANGE(MCS51_PORT_P0, MCS51_PORT_P3) AM_READ(port_r) |
| 169 | 181 | ADDRESS_MAP_END |
| 170 | 182 | |
| 171 | 183 | static MACHINE_CONFIG_START( marywu , marywu_state ) |