Wiki Home >> N:-SIO-Command-'T'---Set-Translation

N:-SIO-Command-'T'---Set-Translation


N: SIO Command SET TRANSLATION ($54) ['T']

This is a command for Devices $71-$78 - The N: Device (see SIO-Commands-for-Device-IDs-$71-to-$78).

Description

Set the aux1 and aux2 parameters for a given channel. This has the effect of setting translation for a given Network protocol, and is overridden by a subsequent OPEN command.

Parameters

DCBValue
DDEVIC$71
DUNIT$01 - $04
DCOMND$54 'T'
DSTATS$00
DBUFNULL
DTIMLO$0F
DBYT0
DAUX1new aux1 value (see below)
DAUX2new aux2 value (see below)

Aux1 values

aux1description
4READ
8WRITE
12READ/WRITE

Aux2 values

These values change how incoming CR/LF characters are translated into EOL, and translate how EOL characters are turned back into CR or CR/LF, respectively:

aux2description
0No Translation
1CR to EOL, EOL to CR
2LF to EOL, EOL to LF
3CR/LF to SPACE/EOL, EOL to CR/LF

Examples

CC65

OS.dcb.ddevic=0x71;
OS.dcb.dunit=1;
OS.dcb.dcomnd='T';
OS.dcb.dstats=0x00;
OS.dcb.dbuf=NULL;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=0;
OS.dcb.daux1=12;
OS.dcb.daux2=3; // Set to CR/LF.
siov();

Atari BASIC

XIO ASC('T'),#1,0,3,"N:":REM SET TRANSLATION CR/LF to SPACE/EOL, EOL to CR/LF

See Also

Put other related command links here.


Wiki content is mirrored from the FujiNet Github Wiki