Wiki Home >> SIO-Command-$E9-Unmount-Device-Image

SIO-Command-$E9-Unmount-Device-Image


This is a command for Device $70 - The FujiNet Device itself (see SIO-Commands-for-Device-ID-$70).

Unmount Device Image ($E9)

Description

Unmount device image in slot specified.

This command effectively ejects the disk image from the slot, clearing the filename and properties associated with it.

DAUX1 specifies the device slot to perform the operation on.

DAUX1 value 0x1A selects the cassette tape slot.

Parameters

DCBValue
DDEVIC$70
DUNIT$01
DCOMND$E9
DSTATS$00
DBUFNULL
DTIMLO$0F
DBYT0
DAUX1Slot $00-$07 for disks, $1A for tape
DAUX2not used

Examples

Atari BASIC

REM Unmount/Eject D1: (CMD 233 '$E9', AUX1=0 [Slot 1])
XIO 233,#1,0,0,"N:"

C

// unmount device image
OS.dcb.ddevic=0x70;
OS.dcb.dunit=1;
OS.dcb.dcomnd=0xE9;
OS.dcb.dstats=0x00;
OS.dcb.dbuf=NULL;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=0;
OS.dcb.daux=0; // unmount D1:
siov();

See Also

To be done


Wiki content is mirrored from the FujiNet Github Wiki