summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/svi318.c
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2014-02-09 20:08:25 +0000
committer smf- <smf-@users.noreply.github.com>2014-02-09 20:08:25 +0000
commitbe55c4bef617d21dab79e0b8d3d31e1472ed767b (patch)
tree620031e820d7aedc289ce277abcde1b4b7012adb /src/mess/drivers/svi318.c
parent4e64093ebc1ce7d26c810d5a591b0b8bd437e8f9 (diff)
Centronics WIP using write lines and DEVCB2. Added an output latch and input buffer device to allow configuration in MCFG. Renamed centronics device "printer" to "image". FM-7 parallel port joystick works again. Added support for using PC LPT control lines as inputs (not tested). c64 geocable now just passes individual lines through, changed the strobe line to what is documented online (not tested). Converted MSX & exidy sorcerer parallel port DAC to use covox device instead of using a configuration switch (not tested). Sorcerer parallel port is more like the commodore user port, so should be converted to it's own slot where one option is a centronics card. [smf]
Diffstat (limited to 'src/mess/drivers/svi318.c')
-rw-r--r--src/mess/drivers/svi318.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mess/drivers/svi318.c b/src/mess/drivers/svi318.c
index 4c2fa75b112..7402eb75d62 100644
--- a/src/mess/drivers/svi318.c
+++ b/src/mess/drivers/svi318.c
@@ -336,7 +336,10 @@ static MACHINE_CONFIG_START( svi318, svi318_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
/* printer */
- MCFG_CENTRONICS_PRINTER_ADD("centronics", standard_centronics)
+ MCFG_CENTRONICS_ADD("centronics", centronics_printers, "image")
+ MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(svi318_state, write_centronics_busy))
+
+ MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", "centronics")
MCFG_CASSETTE_ADD( "cassette", svi318_cassette_interface )
@@ -466,7 +469,10 @@ static MACHINE_CONFIG_START( svi328_806, svi318_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
/* printer */
- MCFG_CENTRONICS_PRINTER_ADD("centronics", standard_centronics)
+ MCFG_CENTRONICS_ADD("centronics", centronics_printers, "image")
+ MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(svi318_state, write_centronics_busy))
+
+ MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", "centronics")
MCFG_CASSETTE_ADD( "cassette", svi318_cassette_interface )