Previous 15994 Revisions Next

r15155 Sunday 13th May, 2012 at 03:05:09 UTC by R. Belmont
Lisa: Hooked up SCC, serial POST tests now pass [R. Belmont]
[src/mess/drivers]lisa.c
[src/mess/includes]lisa.h
[src/mess/machine]lisa.c

src/mess/machine/lisa.c
r15154r15155
18671867         /* I/O Board Devices */
18681868         switch ((offset & 0x0600) >> 9)
18691869         {
1870         case 0:   /* serial ports control */
1871            /*SCCBCTL           .EQU    $FCD241         ;SCC channel B control
1872                ACTL            .EQU    2           ;offset to SCC channel A control
1873                SCCDATA         .EQU    4           ;offset to SCC data regs*/
1870            case 0:   /* serial ports control */
1871                return m_scc->reg_r(space, offset&7);
18741872            break;
18751873
18761874         case 2:   /* parallel port */
r15154r15155
19961994         /* I/O Board Devices */
19971995         switch ((offset & 0x0600) >> 9)
19981996         {
1999         case 0:   /* serial ports control */
1997            case 0:   /* serial ports control */
1998                m_scc->reg_w(space, offset&7, data);
20001999            break;
20012000
20022001         case 2:   /* paralel port */
r15154r15155
20322031   }
20332032}
20342033
2034void lisa_state::set_scc_interrupt(bool value)
2035{
2036}
20352037
src/mess/includes/lisa.h
r15154r15155
1010#define LISA_H_
1111
1212#include "machine/6522via.h"
13#include "machine/8530scc.h"
1314
1415#define COP421_TAG      "u9f"
1516#define KB_COP421_TAG   "kbcop"
r15154r15155
9394public:
9495   lisa_state(const machine_config &mconfig, device_type type, const char *tag)
9596      : driver_device(mconfig, type, tag),
97      m_maincpu(*this, "maincpu"),
98      m_scc(*this, "scc"),
9699      m_fdc_rom(*this,"fdc_rom"),
97100      m_fdc_ram(*this,"fdc_ram") { }
98101
102   required_device<device_t> m_maincpu;
103   required_device<scc8530_t> m_scc;
104
99105   required_shared_ptr<UINT8> m_fdc_rom;
100106   required_shared_ptr<UINT8> m_fdc_ram;
101107   UINT8 *m_ram_ptr;
r15154r15155
149155   DECLARE_WRITE16_MEMBER(lisa_w);
150156   DECLARE_READ16_MEMBER(lisa_IO_r);
151157   DECLARE_WRITE16_MEMBER(lisa_IO_w);
158
159   void set_scc_interrupt(bool value);
152160};
153161
154162
src/mess/drivers/lisa.c
r15154r15155
195195   /* via */
196196   MCFG_VIA6522_ADD("via6522_0", 500000, lisa_via6522_0_intf)
197197   MCFG_VIA6522_ADD("via6522_1", 500000, lisa_via6522_1_intf)
198
199   MCFG_SCC8530_ADD("scc", 7833600, line_cb_t(FUNC(lisa_state::set_scc_interrupt), static_cast<lisa_state *>(owner)))
198200MACHINE_CONFIG_END
199201
200202

Previous 15994 Revisions Next


© 1998-2018 The MESS Team