XC-BASIC icon indicating copy to clipboard operation
XC-BASIC copied to clipboard

Suggestion: Communications ability with the userport

Open eightbitswide opened this issue 5 years ago • 4 comments

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.

eightbitswide avatar Aug 07 '19 12:08 eightbitswide

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:

  • What new constants should the extension define (if any)?
  • What new commands should the extension define?
    • Command name and arguments
    • What does the command actually do?
  • What new functions should the extension define (if any)?
    • Function name, arguments and return type
    • What does the function do?

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

neilsf avatar Aug 07 '19 13:08 neilsf

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)

eightbitswide avatar Aug 08 '19 02:08 eightbitswide

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?

neilsf avatar Aug 08 '19 05:08 neilsf

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

eightbitswide avatar Aug 08 '19 13:08 eightbitswide