•  Back 
  •  write_config_word 
  •  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-File4.15.18.1  Bindings for write_config_word                          TOS

 C:          #include <tos.h>

             int32_t write_config_word (int32_t handle, uint8_t reg, 
             uint16_t val);

 Assembler:

             move.w    val,-(sp)     ; Offset 7
             move.b    reg,-(sp)     ; Offset 6
             move.l    handle,-(sp)  ; Offset 2
             move.w    #309,-(sp)    ; Offset 0
             trap      #14           ; Call XBIOS
             addq.l    #9,sp         ; Correct stack