neilsf / XC-BASIC

A compiling BASIC dialect for the Commodore-64
https://xc-basic.net/
MIT License
75 stars 15 forks source link

Suggestion: Communications ability with the userport #61

Open eightbitswide opened 5 years ago

eightbitswide commented 5 years ago

It is possible to add userport communications ability for use in creating a terminal program or BBS system in the near future? Enhanced communication routines with supported 2400 or even 9600 baud would be icing the cake.

neilsf commented 5 years ago

The extension system is on the way, hopefully it will be ready for testing in a few days. Once it works, any kind of extensions can be added. If you request a new extension, please write a brief description with the following:

Preferably write some examples, for example how would you implement each functionality in CBM BASIC or assembly?

eightbitswide commented 5 years ago

Need the following "like" commands: (Hope this makes sense)

OPEN {speed,parity,bit,stop} OPEN 9600,N,8,1 GET #{port},A$ GET#1,A$ (Does not wait for A$ <> "") PRINT #{port},A$ STAT #{port},A (CONNECT,DCD,DTR)

neilsf commented 5 years ago

Thanks. I admit I'll have to do some reading in the topic. Is there an existing code library that could be included in the project and we could get its routines wired to the new commands?

eightbitswide commented 5 years ago

There may be some useful code which could be pulled from CCGMS 19 https://csdb.dk/release/?id=173065