Previous 15994 Revisions Next

r15435 Sunday 10th June, 2012 at 03:07:12 UTC by R. Belmont
Apple II: Support an alternate version of the AP-16 card [R. Belmont, rfka01]
[src/mess/drivers]apple2.c
[src/mess/machine]a2videoterm.c a2videoterm.h

src/mess/machine/a2videoterm.c
r15434r15435
3535
3636const device_type A2BUS_VIDEOTERM = &device_creator<a2bus_videoterm_device>;
3737const device_type A2BUS_IBSAP16 = &device_creator<a2bus_ap16_device>;
38const device_type A2BUS_IBSAP16ALT = &device_creator<a2bus_ap16alt_device>;
3839
3940#define VIDEOTERM_ROM_REGION  "vterm_rom"
4041#define VIDEOTERM_GFX_REGION  "vterm_gfx"
r15434r15435
9293    ROM_LOAD( "space 84 video chargen ap16.bin", 0x000000, 0x002000, CRC(b9447088) SHA1(19c95f91a67b948fc00a14621d574d629479d451) )
9394ROM_END
9495
96ROM_START( a2ap16alt )
97   ROM_REGION(0x1000, VIDEOTERM_ROM_REGION, 0)
98    ROM_LOAD( "unknown apple ii clone video 3.bin", 0x000000, 0x001000, CRC(af1226d2) SHA1(18a569f417a47f54a17bd9046d306a54b46ed049) )
99
100   ROM_REGION(0x4000, VIDEOTERM_GFX_REGION, 0)
101    ROM_LOAD( "unknown apple ii clone video 1.bin", 0x000000, 0x001000, CRC(cf84811c) SHA1(135f4f35607dd74941f0a3cae813227bf8a8a020) )
102ROM_END
103
95104/***************************************************************************
96105    FUNCTION PROTOTYPES
97106***************************************************************************/
r15434r15435
120129   return ROM_NAME( a2ap16 );
121130}
122131
132const rom_entry *a2bus_ap16alt_device::device_rom_region() const
133{
134   return ROM_NAME( a2ap16alt );
135}
136
123137//**************************************************************************
124138//  LIVE DEVICE
125139//**************************************************************************
r15434r15435
143157   m_shortname = "a2ap16";
144158}
145159
160a2bus_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)
162{
163   m_shortname = "a2ap16a";
164}
165
146166//-------------------------------------------------
147167//  device_start - device-specific startup
148168//-------------------------------------------------
r15434r15435
217237
218238UINT8 a2bus_videx80_device::read_cnxx(address_space &space, UINT8 offset)
219239{
220    // one slot image at the end of the ROM, it appears
221240    return m_rom[offset+0x300];
222241}
223242
224243UINT8 a2bus_ap16_device::read_cnxx(address_space &space, UINT8 offset)
225244{
226    // one slot image at the end of the ROM, it appears
227245    return m_rom[offset+0x1f00];
228246}
229247
248UINT8 a2bus_ap16alt_device::read_cnxx(address_space &space, UINT8 offset)
249{
250    return m_rom[offset+0xb00];
251}
252
230253/*-------------------------------------------------
231254    write_cnxx - called for writes to this card's cnxx space
232255    the firmware writes here to switch in our $C800 a lot
src/mess/machine/a2videoterm.h
r15434r15435
7171};
7272
7373
74class a2bus_ap16alt_device : public a2bus_videx80_device
75{
76public:
77    a2bus_ap16alt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
78
79    virtual const rom_entry *device_rom_region() const;
80
81    virtual UINT8 read_cnxx(address_space &space, UINT8 offset);
82};
83
7484// device type definition
7585extern const device_type A2BUS_VIDEOTERM;
7686extern const device_type A2BUS_IBSAP16;
87extern const device_type A2BUS_IBSAP16ALT;
7788
7889#endif /* __A2BUS_VIDEOTERM__ */
7990
src/mess/drivers/apple2.c
r15434r15435
629629    SLOT_INTERFACE("alfam2", A2BUS_ALFAM2)    /* ALF Apple Music II */
630630    SLOT_INTERFACE("echoii", A2BUS_ECHOII)    /* Street Electronics Echo II */
631631    SLOT_INTERFACE("ap16", A2BUS_IBSAP16)    /* IBS AP16 (German VideoTerm clone) */
632    SLOT_INTERFACE("ap16alt", A2BUS_IBSAP16ALT)    /* IBS AP16 (German VideoTerm clone), alternate revision */
632633//    SLOT_INTERFACE("scsi", A2BUS_SCSI)  /* Apple II SCSI Card */
633634SLOT_INTERFACE_END
634635

Previous 15994 Revisions Next


© 1998-2018 The MESS Team