Previous 199869 Revisions Next

r18768 Monday 29th October, 2012 at 15:58:01 UTC by Curt Coder
(MESS) cbm2: Fixed HR graphics cartridge crash. (nw)
[hash]cbm2_cart.xml
[src/mess/machine]cbm2_graphic.c cbm2_graphic.h

trunk/hash/cbm2_cart.xml
r18767r18768
33<softwarelist name="cbm2_cart" description="Commodore CBM-II cartridges">
44
55   <software name="profitxt">
6      <description>ProfiText</description>
6      <description>Profi-Text</description>
77      <year>198?</year>
8      <publisher>&lt;unknown&gt;</publisher>
8      <publisher>Völkner Electronic</publisher>
99
1010      <part name="cart" interface="cbm2_cart">
1111         <dataarea name="bank1" size="0x2000">
r18767r18768
4747   </software>
4848
4949   <software name="moni610">
50      <description>Moni610</description>
51      <year>2008</year>
50      <description>Moni 610</description>
51      <year>1988</year>
5252      <publisher>Ullrich von Bassewitz</publisher>
5353
5454      <part name="cart" interface="cbm2_cart">
55         <dataarea name="bank1" size="0x2000">
56            <rom name="moni.bin" size="0x2000" crc="43b08d1f" sha1="9c0c24907e85674348dd58e81e6da64e157e9d0f" offset="0" />
55         <dataarea name="bank2" size="0x2000">
56            <rom name="moni610.bin" size="0x2000" crc="43b08d1f" sha1="9c0c24907e85674348dd58e81e6da64e157e9d0f" offset="0" />
5757         </dataarea>
5858      </part>
5959   </software>
6060
6161   <software name="vt52">
62      <description>VT52 Emulator</description>
62      <description>VT52 Emulator (Hun)</description>
6363      <year>1986</year>
6464      <publisher>&lt;unknown&gt;</publisher>
65      <info name="usage" value="Press 'ESC-?' to run" />
6566
6667      <part name="cart" interface="cbm2_cart">
6768         <dataarea name="bank2" size="0x2000">
trunk/src/mess/machine/cbm2_graphic.c
r18767r18768
3838
3939
4040//-------------------------------------------------
41//  ef9345_interface gdp_intf
41//  ef9365_interface gdp_intf
4242//-------------------------------------------------
43
44static const ef9345_interface gdp_intf =
43/*
44static const ef9365_interface gdp_intf =
4545{
4646   SCREEN_TAG
4747};
48*/
4849
49
5050//-------------------------------------------------
5151//  MACHINE_CONFIG_FRAGMENT( cbm2_graphic_a )
5252//-------------------------------------------------
5353
5454static MACHINE_CONFIG_FRAGMENT( cbm2_graphic_a )
55   MCFG_SCREEN_ADD(SCREEN_TAG, RASTER)
56   MCFG_SCREEN_UPDATE_DEVICE(EF9365_TAG, ef9345_device, screen_update)
55/*   MCFG_SCREEN_ADD(SCREEN_TAG, RASTER)
56   MCFG_SCREEN_UPDATE_DEVICE(EF9365_TAG, ef9365_device, screen_update)
5757   MCFG_SCREEN_SIZE(512, 512)
5858   MCFG_SCREEN_VISIBLE_AREA(0, 512-1, 0, 512-1)
5959   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
6060   MCFG_SCREEN_REFRESH_RATE(50)
6161
62   MCFG_EF9345_ADD(EF9365_TAG, gdp_intf)
62   MCFG_EF9365_ADD(EF9365_TAG, gdp_intf)*/
6363MACHINE_CONFIG_END
6464
6565
r18767r18768
6868//-------------------------------------------------
6969
7070static MACHINE_CONFIG_FRAGMENT( cbm2_graphic_b )
71   MCFG_SCREEN_ADD(SCREEN_TAG, RASTER)
72   MCFG_SCREEN_UPDATE_DEVICE(EF9366_TAG, ef9345_device, screen_update)
71/*   MCFG_SCREEN_ADD(SCREEN_TAG, RASTER)
72   MCFG_SCREEN_UPDATE_DEVICE(EF9366_TAG, ef9366_device, screen_update)
7373   MCFG_SCREEN_SIZE(512, 256)
7474   MCFG_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1)
7575   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
7676   MCFG_SCREEN_REFRESH_RATE(50)
7777
78   MCFG_EF9345_ADD(EF9366_TAG, gdp_intf)
78   MCFG_EF9366_ADD(EF9366_TAG, gdp_intf)*/
7979MACHINE_CONFIG_END
8080
8181
r18767r18768
106106cbm2_graphic_cartridge_device::cbm2_graphic_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
107107   device_t(mconfig, CBM2_GRAPHIC, "CBM 500/600/700 High Resolution Graphics", tag, owner, clock),
108108   device_cbm2_expansion_card_interface(mconfig, *this),
109   m_gdc(*this, EF9365_TAG),
109   //m_gdc(*this, EF9365_TAG),
110110   m_variant(TYPE_A)
111111{
112112}
r18767r18768
127127
128128void cbm2_graphic_cartridge_device::device_reset()
129129{
130   //m_gdc->reset();
130131}
131132
132133
r18767r18768
140141   {
141142      if (offset < 0x7f80)
142143      {
143         data = m_bank3[offset & m_bank1_mask];
144         data = m_bank3[offset];
144145      }
145146      else if (offset == 0x7f90)
146147      {
r18767r18768
165166      }
166167      else if (offset >= 0x7ff0)
167168      {
168         data = m_gdc->data_r(space, offset & 0x07);
169         //data = m_gdc->data_r(space, offset & 0x07);
169170      }
170171   }
171172
r18767r18768
200201      }
201202      else if (offset >= 0x7ff0)
202203      {
203         m_gdc->data_w(space, offset & 0x07, data);
204         //m_gdc->data_w(space, offset & 0x07, data);
204205      }
205206   }
206207}
trunk/src/mess/machine/cbm2_graphic.h
r18767r18768
5252   virtual void cbm2_bd_w(address_space &space, offs_t offset, UINT8 data, int csbank1, int csbank2, int csbank3);
5353
5454private:
55   required_device<ef9345_device> m_gdc;
55   //required_device<ef9345_device> m_gdc;
5656
5757   int m_variant;
5858};

Previous 199869 Revisions Next


© 1997-2024 The MAME Team