•  Back 
  •  Auskunftsfunktionen 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : TOS - das Betriebssystem
Author      : 
Version     : tos.hyp (5. März 2013)
Subject     : Programmieren/Atari
Nodes       : 3001
Index Size  : 93602
HCP-Version : 5
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Titel
@help       : 
@options    : +g -i -s +x +zz -t4
@width      : 70
View Ref-File7.6.83  Bindings für v_create_driver_info                          TOS

 C:         DRV_INFO *v_create_driver_info( int16_t handle, int16_t 
            driver_id );

 Umsetzung:

            DRV_INFO *v_create_driver_info( int16_t handle, int16_t driver_id )
            {
              int16_t save_conf;
 
              intin[0] = driver_id;
 
              contrl[0] = 180;
              contrl[1] = 0;
              contrl[3] = 1;
              contrl[5] = 0;
              contrl[6] = handle;
 
              contrl[2] = 0;
              contrl[4] = 0;
 
              save_conf = disable_nvdi_errors();
              vdi ();
              enable_nvdi_errors( save_conf );
 
              if ( contrl[4] >= 2 )
                return(*(DRV_INFO **) &intout[0] );
 
              return( 0L );
            }

 GEM-Arrays:

             Adresse    Feldelement   Belegung 
             contrl     contrl[0]     180   # Opcode der Funktion 
             contrl+2   contrl[1]     0     # Einträge in ptsin 
             contrl+4   contrl[2]     0     # Einträge in ptsout 
             contrl+6   contrl[3]     1     # Einträge in intin 
             contrl+8   contrl[4]     2     # Einträge in intout 
             contrl+10  contrl[5]     0 
             contrl+12  contrl[6]     handle 
             intin      intin[0]      driver_id 
             intout     intout[0..1]  Return-Wert