Previous 199869 Revisions Next

r17380 Tuesday 21st August, 2012 at 19:50:30 UTC by Curt Coder
(MESS) vip: Fixed VP-700 Tiny BASIC ROM mapping and VP-620 ASCII keyboard. [Curt Coder]
[src/mess/drivers]vip.c
[src/mess/machine]vp620.c vp620.h vp700.c

trunk/src/mess/machine/vp620.c
r17379r17380
2525WRITE8_MEMBER( vp620_device::kb_w )
2626{
2727   m_keydata = data;
28
28   
29   m_slot->inst_w(0);
30   m_slot->inst_w(1);
31   
2932   m_keystb = ASSERT_LINE;
3033}
3134
r17379r17380
9699//  vip_ef3_r - EF3 flag read
97100//-------------------------------------------------
98101
99int vp620_device::vip_ef3_r()
102int vp620_device::vip_ef4_r()
100103{
101104   int state = m_keystb;
102105
trunk/src/mess/machine/vp620.h
r17379r17380
4444
4545   // device_vip_byteio_port_interface overrides
4646   virtual UINT8 vip_in_r();
47   virtual int vip_ef3_r();
47   virtual int vip_ef4_r();
4848
4949private:
5050   UINT8 m_keydata;
trunk/src/mess/machine/vp700.c
r17379r17380
7272{
7373   UINT8 data = 0xff;
7474
75   if (cs)
75   if (offset < 0x1000)
7676   {
7777      *minh = 1;
7878
trunk/src/mess/drivers/vip.c
r17379r17380
5656
5757    TODO:
5858
59    - Tiny BASIC
59    - ASCII keyboard
6060    - cassette loading
6161    - 20K RAM for Floating Point BASIC
6262    - VP-111 has 1K RAM, no byte I/O, no expansion
r17379r17380
266266
267267    UINT8 data = m_exp->program_r(space, offset, cs, cdef, &minh);
268268
269    if (!minh)
269    if (cs)
270270    {
271        if (cs)
272        {
273            data = memregion(CDP1802_TAG)->base()[offset & 0x1ff];
274        }
275        else
276        {
277            data = m_ram->pointer()[offset & m_ram->mask()];
278        }
271        data = memregion(CDP1802_TAG)->base()[offset & 0x1ff];
279272    }
273    else if (!minh)
274    {
275        data = m_ram->pointer()[offset & m_ram->mask()];
276    }
280277
281278    return data;
282279}
r17379r17380
708705
709706    // internal speaker
710707    m_beeper->set_output_gain(0, ioport("BEEPER")->read() ? 0.80 : 0);
708
709    // clear byte I/O latch
710    m_byteio_data = 0;
711711}
712712
713713

Previous 199869 Revisions Next


© 1997-2024 The MAME Team