•  Back 
  •  XBIOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FileBconmap()
Iorec()                                                               XBIOS

Syntax

IOREC *Iorec( dev )
WORD dev;

Function      Iorec() returns the address in memory of system data
              structures relating to the buffering of input data.

Opcode        14 (0x0E)

Availability  All TOS versions.

Parameters    dev specifies the device to return information about as
              follows:

              Name        dev  Meaning

              IO_SERIAL    0   Currently mapped serial device (see
                               Bconmap() )

              IO_KEYBOARD  1   Keyboard

              IO_MIDI      2   MIDI

Binding       move.w   dev,-(sp)
              move.w   #$0E,-(sp)
              trap     #14
              addq.l   #4,sp

Return Value  Iorec() returns the address of an IOREC array with either one
              element (Keyboard or MIDI) or two elements (RS-232 - 1st =
              = input, 2nd = output). The IOREC structure is defined as
              follows:

              typedef struct
              {
               /* start of buffer */
               char *ibuf;

               /* size of buffer */
               WORD ibufsize;

               /* head index mark of buffer */
               WORD ibufhd;

               /* tail index mark of buffer */
               WORD ibuftl;

               /* low-water mark of buffer */
               WORD ibuflow;

               /* high-water mark of buffer */
               WORD ibufhi;
              } IOREC;

See Also      Bconmap()