•  Back 
  •  The device driver (MX_DEV) 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : TOS - The Operating System
Author      : 
Version     : tos.hyp (December 19, 2008)
Subject     : Programmieren/Atari
Nodes       : 3010
Index Size  : 93790
HCP-Version : 5
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Title
@help       : 
@options    : +g -i -s +x +zz -t4
@width      : 70
View Ref-File11.5.16.39.3  dev_getc                                             TOS

 Name:        »dev_getc«

 Parameters:

               a0 =     FD *file
               d0 =     int mode
               -> d0 =  unsigned long c

 Description: dev_getc is used by the kernel for Fgetchar and the 
              character-oriented functions (Cconin, Cconout, Cauxin 
              etc.). In the case of a device, the return value may be 
              a LONGword (e.g. for CON having the scancode of the key 
              in the high-WORD), else a byte (always extended to 
              'unsigned'). At EOF, 0x0000FF1A must be returned.

              mode means:

               CMODE_COOKED (1)  Bit 0 set: Control characters ^C, ^S, 
                                 ^Q will be processed
               CMODE_RAW (0)     Bit 0 not set: 'raw' mode
               CMODE_ECHO (2)    Bit 1 set: Input will be echoed

              The file driver installed by DOS_XFS passes the call on 
              to the MX_DDEV subdriver if the function is supported in 
              the MX_DDEV driver (pointer != NULL), otherwise the 
              function is implemented automatically as dev_fread.

 Group:       Workstation driver

 See also:    -