Skip to content

N: SIO Command 'W' Write

Thomas Cherryhomes edited this page May 9, 2020 · 4 revisions

N: SIO Command READ ($57) ['W']

Description

Write the requested number of bytes out to the protocol channel.

Parameters

DCB Value
DDEVIC $71
DUNIT $01 - $04
DCOMND $57 'W'
DSTATS $80
DBUF NULL
DTIMLO $0F
DBYT # of bytes to write
DAUX1 # of bytes to write LO
DAUX2 # of bytes to write HI

Examples

CC65

  if (xmit_buffer_len>0)
    {
      OS.dcb.ddevic=0x71;
      OS.dcb.dunit=1;
      OS.dcb.dcomnd='W';
      OS.dcb.dstats=0x80;
      OS.dcb.dbuf=&xmit_buffer;
      OS.dcb.dtimlo=0x0f;
      OS.dcb.dbyt=xmit_buffer_len;
      OS.dcb.daux1=xmit_buffer_len;
      OS.dcb.daux2=0;
      siov();

      xmit_buffer_len=0;
      return;
    }

See Also

Put other related command links here.

Clone this wiki locally