Previous 199869 Revisions Next

r44468 Monday 25th January, 2016 at 03:20:36 UTC by Felipe CorrĂȘa da Silva Sanches
[marywu] experimenting with the port bits. These port bits still need to be mapped out.
[src/mame/drivers]marywu.cpp

trunk/src/mame/drivers/marywu.cpp
r252979r252980
3636    DECLARE_WRITE8_MEMBER(ay2_port_a_w);
3737    DECLARE_WRITE8_MEMBER(ay2_port_b_w);
3838    DECLARE_READ8_MEMBER(keyboard_r);
39    DECLARE_READ8_MEMBER(port_r);
3940private:
4041    uint8_t m_selected_7seg_module;
4142};
r252979r252980
132133    m_selected_7seg_module = data;
133134}
134135
136READ8_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
135147READ8_MEMBER( marywu_state::keyboard_r )
136148{
137149    switch(m_selected_7seg_module % 8){
r252979r252980
165177    AM_RANGE(0x9002, 0x9002) AM_MIRROR(0x0ffc) AM_DEVWRITE("ay2", ay8910_device, data_address_w)
166178    AM_RANGE(0x9003, 0x9003) AM_MIRROR(0x0ffc) AM_DEVREADWRITE("ay2", ay8910_device, data_r, data_w)
167179    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)
169181ADDRESS_MAP_END
170182
171183static MACHINE_CONFIG_START( marywu , marywu_state )


Previous 199869 Revisions Next


© 1997-2024 The MAME Team