🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Keith Petersen Fri, 31 Oct 1986 17:12
Flushing the one-character BDOS console input buffer
#5413
Author: Keith Petersen
Date: Fri, 31 Oct 1986 17:12
13 lines
925 bytes
Russ, this works for my programs that use function 6 for portability.
This will flush the BDOS buffer if there are any characters waiting.

	MVI	C,CONSTAT	;BDOS console status function
	CALL	BDOS
	ORA	A		;check for character pending
	JZ	SKIPIT		;zero means nothing there
	MVI	C,CONIN		;BDOS console input function
	CALL	BDOS		;go get it
;
SKIPIT:	(do your next task here, ignoring any character gathered above)

--Keith
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads