•  Back 
  •  Trapper 
  •  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-File4.18.10.1  Bindings für Trapper                                    TOS

 C:          #include <tos.h>

             int32_t xbios( 555, int16_t layer, int16_t install, 
             int16_t opcode, void *function );

 Assembler:

             pea (a2)                  ; TOS does not save A2 in traps
             move.l    function,-(sp)  ; Offset 8
             move.w    opcode,-(sp)    ; Offset 6
             move.w    install,-(sp)   ; Offset 4
             move.w    layer,-(sp)     ; Offset 2
             move.w    #555,-(sp)      ; Offset 0
             trap      #14             ; XBIOS aufrufen
             lea       12(sp),sp       ; Stack korrigieren
             move.l    (sp)+,a2        ; restore A2