Wiki Home >> SIO-Command-$F3-Write-Host-Slots

SIO-Command-$F3-Write-Host-Slots


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

Write Host Slots ($F3)

Description

Called to store the list of 8 stored hosts onto the FujiNet. All eight hosts are stored verbatim, regardless of whether they were changed or not. It is assumed that the implementor has previously called Read Host Slots to populate the buffer, before any editing has occurred.

Parameters

DCBValue
DDEVIC$70
DUNIT$01
DCOMND$F3
DSTATS$80
DBUFPointer to a 256 byte buffer to hold all eight hosts, 32 characters per host.
DTIMLO$0F
DBYT256
DAUX1Not Used
DAUX2Not Used

Examples

CC65

union
{
  unsigned char host[8][32];
  unsigned char rawData[256];
} hostSlots;

// Query for host slots
OS.dcb.ddevic=0x70;
OS.dcb.dunit=1;
OS.dcb.dcomnd=0xF3; // Get host slots
OS.dcb.dstats=0x80;
OS.dcb.dbuf=&hostSlots.rawData;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=256;
OS.dcb.daux=0;
siov();

See Also


Wiki content is mirrored from the FujiNet Github Wiki