Wiki Home >> SIO-Command-$E1-Set-Host-Prefix

SIO-Command-$E1-Set-Host-Prefix


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

Set Host Prefix

Description

Causes the FujiNet to set the host prefix to what's specified by the buffer.

Parameters

DCBValue
DDEVIC$70
DUNIT$01
DCOMND$E1
DSTATS$80
DBUFPointer to 256 byte buffer
DTIMLO$FE
DBYT256
DAUX1Host Slot
DAUX2Not used

Examples

CC65


/**
 * Ask fujinet for host prefix for given slot
 */
void fuji_set_host_prefix(unsigned char slot, char prefix)
{
  OS.dcb.ddevic=0x70;
  OS.dcb.dunit=1;
  OS.dcb.dcomnd=0xE0;
  OS.dcb.dstats=0x80;
  OS.dcb.dbuf=prefix;
  OS.dcb.dtimlo=0xFE; // Max timeout
  OS.dcb.dbyt=256;
  OS.dcb.daux1=slot; // Host slot 1
  siov();
}

fuji_set_host_prefix(0,"Games/"); // Set prefix for host slot 1 to /Games

Wiki content is mirrored from the FujiNet Github Wiki