From 73e2a3f542e868149f3b0be6c1bf395283711f33 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Wed, 1 Mar 2017 16:25:12 +1100 Subject: ti85.cpp: Convert TI-8x link port to a bus with emulated peripherals, should work with TI-82 and TI-85. * tee allows two peripherals to be connected in parallel * glinkhle is an RS232 (9600 8N1) adaptor * bitsock sends raw assert/release line signals to/from a bitbanger device * monospkr is a speaker connected between tip/ring in parallel and sleeve * stereospkr is two speakers: left across tip and sleeve, right across ring and sleeve Use glinkhle to make emulated calculators talk with cooked sockets, e.g. mame ti82 -linkport glinkhle -linkport:glinkhle:rs232 null_modem -bitb socket.127.0.0.1:2345 Use bitsock to make emulated calculators talk with cooked sockets, e.g. mame ti82 -linkport bitsock -bitb socket.127.0.0.1:2345 You can use tee to do stuff like listen to data activity for debugging purposes, e.g. mame ti82 -linkport tee -linkport:tee:a stereospkr -linkport:tee:b glinkhle -linkport:tee:b:glinkhle:rs232 null_modem -bitb socket.127.0.0.1:2345 --- scripts/src/bus.lua | 20 ++++++++++++++++++++ scripts/target/mame/mess.lua | 1 + 2 files changed, 21 insertions(+) (limited to 'scripts') diff --git a/scripts/src/bus.lua b/scripts/src/bus.lua index a21315344d8..b05cc795e85 100644 --- a/scripts/src/bus.lua +++ b/scripts/src/bus.lua @@ -2288,6 +2288,26 @@ if (BUSES["SMS_EXP"]~=null) then } end +--------------------------------------------------- +-- +--@src/devices/bus/ti8x/ti8x.h,BUSES["TI8X"] = true +--------------------------------------------------- + +if (BUSES["TI8X"]~=null) then + files { + MAME_DIR .. "src/devices/bus/ti8x/bitsocket.cpp", + MAME_DIR .. "src/devices/bus/ti8x/bitsocket.h", + MAME_DIR .. "src/devices/bus/ti8x/graphlinkhle.cpp", + MAME_DIR .. "src/devices/bus/ti8x/graphlinkhle.h", + MAME_DIR .. "src/devices/bus/ti8x/teeconn.cpp", + MAME_DIR .. "src/devices/bus/ti8x/teeconn.h", + MAME_DIR .. "src/devices/bus/ti8x/ti8x.cpp", + MAME_DIR .. "src/devices/bus/ti8x/ti8x.h", + MAME_DIR .. "src/devices/bus/ti8x/tispeaker.cpp", + MAME_DIR .. "src/devices/bus/ti8x/tispeaker.h", + } +end + --------------------------------------------------- -- --@src/devices/bus/ti99x/990_dk.h,BUSES["TI99X"] = true diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua index a3f6f9ea260..cbca0919f1a 100644 --- a/scripts/target/mame/mess.lua +++ b/scripts/target/mame/mess.lua @@ -700,6 +700,7 @@ BUSES["SPC1000"] = true BUSES["SUNKBD"] = true BUSES["SVI_EXPANDER"] = true BUSES["SVI_SLOT"] = true +BUSES["TI8X"] = true BUSES["TI99PEB"] = true BUSES["TI99X"] = true BUSES["TIKI100"] = true -- cgit v1.2.3