Difference between revisions of "OSWORD &19"

From BeebWiki
Jump to: navigation, search
m (1 revision)
m (1 revision)
(No difference)

Revision as of 01:13, 8 March 2015

OSWORD &19 (25) - IP Network receive

This call is made by a modifed NFS to pass networking calls on to an IP networking handler. It should not be called directly by the user, programs should call OSWORD &11 and allow the networking system to forward the call to the appropriate handler.

Specification

   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 01:33, 19 December 2010 (UTC)