Page 1 of 2
BASIC support for the X16 serial port
Posted: Sat Oct 05, 2024 10:18 am
by danboid
I have looked at the list of X16 BASIC commands on github and I don't see any commands for using the serial port card.
Is support for accessing the serial port using BASIC a planned feature? Maybe its already possible using POKEs?
Re: BASIC support for the X16 serial port
Posted: Sat Oct 05, 2024 11:09 am
by ahenry3068
danboid wrote: ↑Sat Oct 05, 2024 10:18 am
I have looked at the list of X16 BASIC commands on github and I don't see any commands for using the serial port card.
Is support for accessing the serial port using BASIC a planned feature? Maybe its already possible using POKEs?
I haven't looked at the project closely (Yet) but Voidstar has a fair little terminal program on here somewhere, entirely in BASIC so it is certainly possible.
Re: BASIC support for the X16 serial port
Posted: Sat Oct 05, 2024 11:13 am
by danboid
Ah yes! BASTERM
viewtopic.php?t=7794
It's only 140 LOC too. Nice!
Thanks ahenry!
Re: BASIC support for the X16 serial port
Posted: Wed Oct 09, 2024 5:43 am
by funkheld
but doesn't work in the x16 emulator.
greeting
Re: BASIC support for the X16 serial port
Posted: Wed Oct 09, 2024 3:04 pm
by kelli217
funkheld wrote: ↑Wed Oct 09, 2024 5:43 am
but doesn't work in the x16 emulator.
greeting
There is not yet any support for expansion cards in the emulator.
It is possible that this may change, because the serial/WiFi card is expected to be a common addition to the machine. But for now the only path to a connection from a Commander X16 to a different machine is with actual hardware: an X16 motherboard, and serial/WiFi expansion card.
Re: BASIC support for the X16 serial port
Posted: Thu Oct 10, 2024 9:32 am
by schristis
Device 2 is RS232 on the C64...
- putty.jpg (51.73 KiB) Viewed 802 times
Just trying to use the OPEN statement... maybe I have the format wrong (I can only try)
or maybe it doesn't work on the X16....
I might have the wrong idea... I'm using information from page 360 of the "C64 Programmers Reference Guide"
Maybe someone else can get it working or give an explanation... ??? or where I stuffed up ?
I think it would be nice to send data too and from your PC to the X16 through a Null-Modem cable, in basic like this ?
Just thought I'd at least try lol.....
Re: BASIC support for the X16 serial port
Posted: Thu Oct 10, 2024 1:36 pm
by ahenry3068
schristis wrote: ↑Thu Oct 10, 2024 9:32 am
Device 2 is RS232 on the C64...
putty.jpg
Just trying to use the OPEN statement... maybe I have the format wrong (I can only try)
or maybe it doesn't work on the X16....
I might have the wrong idea... I'm using information from page 360 of the "C64 Programmers Reference Guide"
Maybe someone else can get it working or give an explanation... ??? or where I stuffed up ?
I think it would be nice to send data too and from your PC to the X16 through a Null-Modem cable, in basic like this ?
Just thought I'd at least try lol.....
Device 2 isn't implemented on the X16. I'm assuming you do have the serial card. ? voidstar has a
program in BASIC on here to access the serial card. I'm going to look for it now. If I find it I'll come
back and post a link.
FOUND IT:
viewtopic.php?p=33922#p33922
Re: BASIC support for the X16 serial port
Posted: Thu Oct 10, 2024 6:11 pm
by kelli217
There's a way to implement giving the device number 2 identifier to the serial card... but you'd have to write the driver to do that, yourself.
Re: BASIC support for the X16 serial port
Posted: Thu Oct 10, 2024 6:53 pm
by ahenry3068
kelli217 wrote: ↑Thu Oct 10, 2024 6:11 pm
There's a
way to implement giving the device number 2 identifier to the serial card... but you'd have to write the driver to do that, yourself.
Tom posted on here on another thread with a brief outline on how to implement A
"/dev/null" as a device number. I've been thinking I might go ahead and try that and post on "Libraries & Examples" if I'm successful. If I get that going I may try to do the serial driver as well.
Re: BASIC support for the X16 serial port
Posted: Fri Oct 11, 2024 8:50 am
by schristis
Re-edited this reply.... as I deleted a post when it was being replied too... that said the same thing.. and can't delete this lol....