Previous 15994 Revisions Next

r4253 Wednesday 11th February, 2009 at 14:20:53 UTC by Dirk Best
[SAMCOUPE] Added centronics printer support
[docs]messnew.txt
[src/mess/drivers]samcoupe.c

src/mess/drivers/samcoupe.c
r4252r4253
6060#include "cpu/z80/z80.h"
6161#include "machine/wd17xx.h"
6262#include "machine/msm6242.h"
63#include "machine/ctronics.h"
6364#include "sound/saa1099.h"
6465#include "sound/speaker.h"
6566
r4252r4253
296297}
297298
298299
300static READ8_HANDLER( samcoupe_lpt1_busy_r )
301{
302   const device_config *printer = devtag_get_device(space->machine, CENTRONICS, "lpt1");
303   return centronics_busy_r(printer);
304}
299305
306
307static WRITE8_HANDLER( samcoupe_lpt1_strobe_w )
308{
309   const device_config *printer = devtag_get_device(space->machine, CENTRONICS, "lpt1");
310   centronics_strobe_w(printer, data);
311}
312
313
314static READ8_HANDLER( samcoupe_lpt2_busy_r )
315{
316   const device_config *printer = devtag_get_device(space->machine, CENTRONICS, "lpt2");
317   return centronics_busy_r(printer);
318}
319
320
321static WRITE8_HANDLER( samcoupe_lpt2_strobe_w )
322{
323   const device_config *printer = devtag_get_device(space->machine, CENTRONICS, "lpt2");
324   centronics_strobe_w(printer, data);
325}
326
327
328
300329/*************************************
301330 *
302331 *  Address maps
r4252r4253
314343static ADDRESS_MAP_START( samcoupe_io, ADDRESS_SPACE_IO, 8 )
315344   AM_RANGE(0x80, 0x81) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_WRITE(samcoupe_ext_mem_w)
316345   AM_RANGE(0xe0, 0xe7) AM_MIRROR(0xff10) AM_MASK(0xffff) AM_READWRITE(samcoupe_disk_r, samcoupe_disk_w)
346   AM_RANGE(0xe8, 0xe8) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_DEVWRITE(CENTRONICS, "lpt1", centronics_data_w)
347   AM_RANGE(0xe9, 0xe9) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_READWRITE(samcoupe_lpt1_busy_r, samcoupe_lpt1_strobe_w)
348   AM_RANGE(0xea, 0xea) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_DEVWRITE(CENTRONICS, "lpt2", centronics_data_w)
349   AM_RANGE(0xeb, 0xeb) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_READWRITE(samcoupe_lpt2_busy_r, samcoupe_lpt2_strobe_w)
317350   AM_RANGE(0xf8, 0xf8) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_READWRITE(samcoupe_pen_r, samcoupe_clut_w)
318351   AM_RANGE(0xf9, 0xf9) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_READWRITE(samcoupe_status_r, samcoupe_line_int_w)
319352   AM_RANGE(0xfa, 0xfa) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_READWRITE(samcoupe_lmpr_r, samcoupe_lmpr_w)
r4252r4253
539572
540573   /* devices */
541574   MDRV_DRIVER_DATA(coupe_asic)
575   MDRV_CENTRONICS_ADD("lpt1", standard_centronics)
576   MDRV_CENTRONICS_ADD("lpt2", standard_centronics)
542577   MDRV_MSM6242_ADD("sambus_clock")
543578
544579   /* sound hardware */
docs/messnew.txt
r4252r4253
3535
3636- [ORIC] Updated to use the new centronics interface.  [Dirk Best]
3737
38- [SAMCOUPE] Added centronics printer support.  [Dirk Best]
39
3840- [TI81, TI85, TI86] Added the new ROM_DEFAULT_BIOS feature to select the most
3941  recent rom versions.  [Hobie Troxell]
4042

Previous 15994 Revisions Next


© 1998-2018 The MESS Team