Skip to content

N: SIO Command $26 Note in File

Bill Kendrick edited this page May 27, 2022 · 4 revisions

N: SIO Command NOTE

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

Description

Get position within file.

Parameters

DCB Value
DDEVIC $71
DUNIT $01 - $04
DCOMND $25
DSTATS $40
DBUF 24-bit long file position (upper 8 bits not used)
DTIMLO $0F
DBYT 4
DAUX1 not used
DAUX2 not used

Examples

CC65


int pos;

OS.dcb.ddevic=0x71;
OS.dcb.dunit=1;
OS.dcb.dcomnd=0x25;
OS.dcb.dstats=0x40;
OS.dcb.dbuf=&pos;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=4;
OS.dcb.daux1=0;
OS.dcb.daux2=0;

See Also

Clone this wiki locally