Skip to content

SIO Command $F2 Read Device Slots

Oscar Fowler edited this page Sep 6, 2020 · 11 revisions

Read Device Slots ($F2)

Description

Read the current FujiNet device slot configuration.

DAUX1 is used to specify a device slot offset as follows:

$00: Device slots 0-7
$10: Tape slot

Parameters

DCB Value
DDEVIC $70
DUNIT $01
DCOMND $F2
DSTATS $40
DBUF Pointer to a 296 byte buffer to hold all eight device slots
DTIMLO $0F
DBYT 296
DAUX1 Slot offset $00, $10 (see above)
DAUX2 Not Used

Examples

CC65

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

See Also

Clone this wiki locally