WikiPendium

(beta)

Cconout()

WikiPendium :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-18-223-97-46.us-east-2.compute.amazonaws.com

Cconout()

(Char CONsole OUTput)

VOID Cconout( ch )

WORD ch;

Cconout() outputs one character via GEMDOS handle 1 (normally 'con:').

Opcode

2 (0x02)

Availability

All GEMDOS versions.

Parameters

ch is a WORD value, however, only the lower 8 bits are sent through the output stream. The upper eight bits must be 0.

Binding

	move.w	ch,-(sp)
	move.w	#2,-(sp)
	trap	#1
	addq.l	#4,sp


Caveats

With GEMDOS versions below 0.15, this handle should not be redirected to a write-only device as the call attempts to read from the output stream to process special keys.

Comments

No line feed translation is done at the time of output. To start a new line, ASCII 13 and ASCII 10 must both be sent.

See Also

Cconin(), Bconout()

Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]