Difference between revisions of "OSWORD &11"

From BeebWiki
Jump to: navigation, search
m (.)
Line 1: Line 1:
{{PageTitle|OSWORD &11 (17) - Network receive}}
{{PageTitle|OSWORD &11 (17): Network receive}}
  XY?0=0 - Open receive block
  XY?0=0 - Open receive block
  On entry:
  On entry:

Revision as of 15:56, 21 November 2021

OSWORD &11 (17): Network receive
XY?0=0 - Open receive block
On entry:
 XY?0   =0
 XY?1   must contain &7F
 XY?2   =port to receive on
 XY+3..4=station to receive from
 XY!5   =reception buffer start address
 XY!9   =reception buffer end address
On exit:
 XY?0=0 if no more space to open blocks, or number of opened
 reception block. Receive blocks can be 'wild', ie will
 receive from anyone if the port or station values are set
 to &00.
XY?0<>0 - Read and delete receive block
On entry:
 XY?0=receive block number to read
 XY!5=receive buffer start address
 XY!9=receive buffer end address
On exit:
 XY?1   =flag from transmission block
 XY?2   =port received on
 XY+3..4=station received from
 XY!9   =updated to new address of buffer end
Unread receive blocks must be deleted with OSBYTE &34 (52).

See Also

Networking calls

Jgharston 13:24, 26 May 2009 (UTC)