Wiki Home >> N:-SIO-Command-$30---Get-Current-Directory
N:-SIO-Command-$30---Get-Current-Directory
N: SIO Command PWD
This is a command for Devices $71-$78 - The N: Device (see SIO-Commands-for-Device-IDs-$71-to-$78).
Description
Get the current prefix, which is prepended on each filespec to the N: device.
Parameters
| DCB | Value | 
|---|---|
| DDEVIC | $71 | 
| DUNIT | $01 - $04 | 
| DCOMND | $30 | 
| DSTATS | $40 | 
| DBUF | pointer to 256 bytes to contain the current path, NULL terminated. | 
| DTIMLO | $0F | 
| DBYT | 256 | 
| DAUX1 | not used | 
| DAUX2 | not used | 
Examples
CC65
char pwd[256];
OS.dcb.ddevic=0x71;
OS.dcb.dunit=1;
OS.dcb.dcomnd=0x30;
OS.dcb.dstats=0x40;
OS.dcb.dbuf=&pwd;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=256;
OS.dcb.daux1=0;
OS.dcb.daux2=0;
See Also
Wiki content is mirrored from the FujiNet Github Wiki
