Wiki Home >> SIO-Command-$F1-Write-Device-Slots

SIO-Command-$F1-Write-Device-Slots


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

Write Device Slots ($F1)

Description

Read the currently mounted device slots

Parameters

DCBValue
DDEVIC$70
DUNIT$01
DCOMND$F1
DSTATS$80
DBUFPointer to a 304 byte buffer to hold all eight device slots
DTIMLO$0F
DBYT304
DAUX1Not Used
DAUX2Not Used

Examples

CC65

union
{
  struct
  {
  unsigned char hostSlot;
  unsigned char mode;
  char file[36];
  } slot[8];
  unsigned char rawData[304];
} deviceSlots;    
    
// Query for host slots
OS.dcb.ddevic=0x70;
OS.dcb.dunit=1;
OS.dcb.dcomnd=0xF1; // Get host slots
OS.dcb.dstats=0x80;
OS.dcb.dbuf=&deviceSlots.rawData;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=304;
OS.dcb.daux=0;
siov();

See Also


Wiki content is mirrored from the FujiNet Github Wiki