Skip to content

N: SIO Command $20 Rename File

Thomas Cherryhomes edited this page Jun 9, 2020 · 6 revisions

N: SIO Command Rename File($20)

Description

Rename the file pointed to by a valid N: Devicespec to a new name. If the desired protocol does not support rename, an ERROR 146 will be returned.

Parameters

DCB Value
DDEVIC $71
DUNIT $01 - $04
DCOMND $20
DSTATS $80
DBUF 256 byte long EOL terminated N: Devicespec
DTIMLO $0F
DBYT 256
DAUX1 not used
DAUX2 not used

Examples

CC65

OS.dcb.ddevic=0x71;
OS.dcb.dunit=1;
OS.dcb.dcomnd='W';
OS.dcb.dstats=0x80;
OS.dcb.dbuf=&xmit_buffer;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=xmit_buffer_len;
OS.dcb.daux1=xmit_buffer_len;
OS.dcb.daux2=0;

See Also

Put other related command links here.

Clone this wiki locally