non-blocking read of serial port via BDOS?

Post Reply
tschak909
Member
Posts: 83
Joined: Sun Sep 09, 2018 5:44 pm

non-blocking read of serial port via BDOS?

Post by tschak909 »

I seem to have a hazy recollection that any reads/writes through BDOS to the default serial port (RDR and the like) block until there is something to read. Is there any way around this? Am trying to find ways to support other systems for PLATOTerm without an explicit RS232 driver (such as the Tatung Einstein).

-Thom
tschak909
Member
Posts: 83
Joined: Sun Sep 09, 2018 5:44 pm

Post by tschak909 »

(yes, I meant to say BIOS)

-Thom
User avatar
dom
Well known member
Posts: 1194
Joined: Sun Jul 15, 2007 10:01 pm

Post by dom »

Just thinking...

BDOS call 11 checks whether CON can be read

BDOS call 8 allows IOBYTE to be changed.

You don't use CON, so can you redirect CON to RDR etc?

Obviously that depends on the device implementation in the BIOS, but might be worth a go.
tschak909
Member
Posts: 83
Joined: Sun Sep 09, 2018 5:44 pm

Post by tschak909 »

interesting...

-Thom
Post Reply