•  Back 
  •  Fcntl 
  •  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-File5.10.5.1  Bindings for Fcntl                                       TOS

 C:          int32_t Fcntl ( int16_t fh, int32_t arg, int16_t cmd );

 Assembler:

             move.w    cmd,-(sp)    ; Offset 8
             move.l    arg,-(sp)    ; Offset 4
             move.w    fh,-(sp)     ; Offset 2
             move.w    #260,-(sp)   ; Offset 0
             trap      #1           ; GEMDOS
             lea       $A(sp),sp    ; Correct stack