Wiki Home >> N:-SIO-Command-$FE---Set-Password

N:-SIO-Command-$FE---Set-Password


N: SIO Command SET PASSWORD ($FD)

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

Description

Sets the password to be used for protocols that can specify a specific user for a protocol action.

Parameters

DCBValue
DDEVIC$71
DUNIT$01 - $04
DCOMND$FE
DSTATS$80
DBUFNULL
DTIMLO$0F
DBYT256
DAUX10
DAUX20

Examples

CC65

void npassword(char* password)
{
  OS.dcb.ddevic=0x71;
  OS.dcb.dunit=1;
  OS.dcb.dcomnd=0xFE;
  OS.dcb.dstats=0x80;
  OS.dcb.dbuf=&password;
  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.


Wiki content is mirrored from the FujiNet Github Wiki