src/mess/machine/a2videoterm.c
| r15441 | r15442 | |
| 36 | 36 | const device_type A2BUS_VIDEOTERM = &device_creator<a2bus_videoterm_device>; |
| 37 | 37 | const device_type A2BUS_IBSAP16 = &device_creator<a2bus_ap16_device>; |
| 38 | 38 | const device_type A2BUS_IBSAP16ALT = &device_creator<a2bus_ap16alt_device>; |
| 39 | const device_type A2BUS_VTC1 = &device_creator<a2bus_vtc1_device>; |
| 40 | const device_type A2BUS_VTC2 = &device_creator<a2bus_vtc2_device>; |
| 39 | 41 | |
| 40 | 42 | #define VIDEOTERM_ROM_REGION "vterm_rom" |
| 41 | 43 | #define VIDEOTERM_GFX_REGION "vterm_gfx" |
| r15441 | r15442 | |
| 101 | 103 | ROM_LOAD( "unknown apple ii clone video 1.bin", 0x000000, 0x001000, CRC(cf84811c) SHA1(135f4f35607dd74941f0a3cae813227bf8a8a020) ) |
| 102 | 104 | ROM_END |
| 103 | 105 | |
| 106 | ROM_START( vtc1 ) |
| 107 | ROM_REGION(0x800, VIDEOTERM_ROM_REGION, 0) |
| 108 | ROM_LOAD( "10.ic10.bin", 0x000000, 0x000800, CRC(ddbbc2fb) SHA1(15d6142b177b47c016f2745e1d95767b440d77c7) ) |
| 109 | |
| 110 | ROM_REGION(0x1000, VIDEOTERM_GFX_REGION, 0) |
| 111 | ROM_LOAD( "9.ic9.bin", 0x000000, 0x000800, CRC(094670f1) SHA1(aefae76fb07740d042cf294f01424efa7cc7a199) ) |
| 112 | ROM_LOAD( "8.ic8.bin", 0x000800, 0x000800, CRC(fbd98d77) SHA1(0d9b1c3917e23ca35d5fbd405f05ff6e87122b92) ) |
| 113 | ROM_END |
| 114 | |
| 115 | ROM_START( vtc2 ) |
| 116 | ROM_REGION(0x800, VIDEOTERM_ROM_REGION, 0) |
| 117 | ROM_LOAD( "6.ic6.bin", 0x000000, 0x000800, CRC(5776fa24) SHA1(19f69011ed7d2551c39d5c1cac1f5a2defc8f8fb) ) |
| 118 | |
| 119 | ROM_REGION(0x1000, VIDEOTERM_GFX_REGION, 0) |
| 120 | ROM_LOAD( "5.ic5.bin", 0x000000, 0x000800, CRC(aafa7085) SHA1(54d7c358f1927ba8f3b61145215a806d8cb6b673) ) |
| 121 | ROM_LOAD( "4.ic4.bin", 0x000800, 0x000800, CRC(8a497a48) SHA1(50c3df528109c65491a001ec74e50351a652c1fd) ) |
| 122 | ROM_END |
| 123 | |
| 104 | 124 | /*************************************************************************** |
| 105 | 125 | FUNCTION PROTOTYPES |
| 106 | 126 | ***************************************************************************/ |
| r15441 | r15442 | |
| 134 | 154 | return ROM_NAME( a2ap16alt ); |
| 135 | 155 | } |
| 136 | 156 | |
| 157 | const rom_entry *a2bus_vtc1_device::device_rom_region() const |
| 158 | { |
| 159 | return ROM_NAME( vtc1 ); |
| 160 | } |
| 161 | |
| 162 | const rom_entry *a2bus_vtc2_device::device_rom_region() const |
| 163 | { |
| 164 | return ROM_NAME( vtc2 ); |
| 165 | } |
| 166 | |
| 137 | 167 | //************************************************************************** |
| 138 | 168 | // LIVE DEVICE |
| 139 | 169 | //************************************************************************** |
| r15441 | r15442 | |
| 152 | 182 | } |
| 153 | 183 | |
| 154 | 184 | a2bus_ap16_device::a2bus_ap16_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 155 | | a2bus_videx80_device(mconfig, A2BUS_VIDEOTERM, "IBS AP-16 80 column card", tag, owner, clock) |
| 185 | a2bus_videx80_device(mconfig, A2BUS_IBSAP16, "IBS AP-16 80 column card", tag, owner, clock) |
| 156 | 186 | { |
| 157 | 187 | m_shortname = "a2ap16"; |
| 158 | 188 | } |
| 159 | 189 | |
| 160 | 190 | a2bus_ap16alt_device::a2bus_ap16alt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 161 | | a2bus_videx80_device(mconfig, A2BUS_VIDEOTERM, "IBS AP-16 80 column card (alt. version)", tag, owner, clock) |
| 191 | a2bus_videx80_device(mconfig, A2BUS_IBSAP16ALT, "IBS AP-16 80 column card (alt. version)", tag, owner, clock) |
| 162 | 192 | { |
| 163 | 193 | m_shortname = "a2ap16a"; |
| 164 | 194 | } |
| 165 | 195 | |
| 196 | a2bus_vtc1_device::a2bus_vtc1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 197 | a2bus_videx80_device(mconfig, A2BUS_VTC1, "Unknown VideoTerm clone #1", tag, owner, clock) |
| 198 | { |
| 199 | m_shortname = "a2vtc1"; |
| 200 | } |
| 201 | |
| 202 | a2bus_vtc2_device::a2bus_vtc2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 203 | a2bus_videx80_device(mconfig, A2BUS_VTC2, "Unknown VideoTerm clone #2", tag, owner, clock) |
| 204 | { |
| 205 | m_shortname = "a2vtc2"; |
| 206 | } |
| 207 | |
| 166 | 208 | //------------------------------------------------- |
| 167 | 209 | // device_start - device-specific startup |
| 168 | 210 | //------------------------------------------------- |
src/mess/machine/a2videoterm.h
| r15441 | r15442 | |
| 81 | 81 | virtual UINT8 read_cnxx(address_space &space, UINT8 offset); |
| 82 | 82 | }; |
| 83 | 83 | |
| 84 | class a2bus_vtc1_device : public a2bus_videx80_device |
| 85 | { |
| 86 | public: |
| 87 | a2bus_vtc1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 88 | |
| 89 | virtual const rom_entry *device_rom_region() const; |
| 90 | }; |
| 91 | |
| 92 | class a2bus_vtc2_device : public a2bus_videx80_device |
| 93 | { |
| 94 | public: |
| 95 | a2bus_vtc2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 96 | |
| 97 | virtual const rom_entry *device_rom_region() const; |
| 98 | }; |
| 99 | |
| 84 | 100 | // device type definition |
| 85 | 101 | extern const device_type A2BUS_VIDEOTERM; |
| 86 | 102 | extern const device_type A2BUS_IBSAP16; |
| 87 | 103 | extern const device_type A2BUS_IBSAP16ALT; |
| 104 | extern const device_type A2BUS_VTC1; |
| 105 | extern const device_type A2BUS_VTC2; |
| 88 | 106 | |
| 89 | 107 | #endif /* __A2BUS_VIDEOTERM__ */ |
| 90 | 108 | |