Wiki Home >> N:-SIO-Command-$26---Note-in-File

N:-SIO-Command-$26---Note-in-File


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

DCBValue
DDEVIC$71
DUNIT$01 - $04
DCOMND$25
DSTATS$40
DBUF24-bit long file position (upper 8 bits not used)
DTIMLO$0F
DBYT4
DAUX1not used
DAUX2not 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


Wiki content is mirrored from the FujiNet Github Wiki