z88dk forums

z80 Development Kit

You are not logged in.

#1 2018-11-05 06:54:13

tschak909
Member
Registered: 2018-09-09
Posts: 83

non-blocking read of serial port via BDOS?

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

Offline

 

#2 2018-11-05 06:55:48

tschak909
Member
Registered: 2018-09-09
Posts: 83

Re: non-blocking read of serial port via BDOS?

(yes, I meant to say BIOS)

-Thom

Offline

 

#3 2018-11-05 08:25:51

dom
Administrator
Registered: 2007-07-15
Posts: 1453
Website

Re: non-blocking read of serial port via BDOS?

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.

Offline

 

#4 2018-11-05 14:36:14

tschak909
Member
Registered: 2018-09-09
Posts: 83

Re: non-blocking read of serial port via BDOS?

interesting...

-Thom

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson