Skip to content

N: SIO Command $FD Set Login

Bill Kendrick edited this page May 27, 2022 · 3 revisions

N: SIO Command SET LOGIN ($FD)

This is a command for Devices $71-$78 - The N: Device (see SIO-Commands-for-Device-IDs-$71-to-$78).

Description

Sets the login (username) to be used for protocols that can specify a specific user for a protocol action.

Parameters

DCB Value
DDEVIC $71
DUNIT $01 - $04
DCOMND $FD
DSTATS $80
DBUF NULL
DTIMLO $0F
DBYT 256
DAUX1 0
DAUX2 0

Examples

CC65

void nlogin(char* username)
{
  OS.dcb.ddevic=0x71;
  OS.dcb.dunit=1;
  OS.dcb.dcomnd=0xFD;
  OS.dcb.dstats=0x80;
  OS.dcb.dbuf=&username;
  OS.dcb.dtimlo=0x1f;
  OS.dcb.dbyt=256;
  OS.dcb.daux1=daux1;
  OS.dcb.daux2=daux2;
  siov();

  if (OS.dcb.dstats!=1)
    {
      err_sio();
      exit(OS.dcb.dstats);
    }
}

See Also

Put other related command links here.

Clone this wiki locally