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-File7.7.2 Bindings for vex_butv TOS
C: void vex_butv ( int16_t handle, int16_t (*pusrcode)(),
int16_t (**psavcode)() );
Binding:
void vex_butv (int16_t handle, int16_t (*pusrcode)(),
int16_t (**psavcode)())
{
contrl[0] = 125;
contrl[1] = 0;
contrl[3] = 0;
contrl[6] = handle;
contrl[7..8] = pusrcode;
vdi ();
*psavcode = contrl[9..10];
}
GEM-Arrays:
Address Element Contents
contrl contrl[0] 125 # Function Opcode
contrl+2 contrl[1] 0 # Entry in ptsin
contrl+4 contrl[2] 0 # Entry in ptsout
contrl+6 contrl[3] 0 # Entry in intin
contrl+8 contrl[4] 0 # Entry in intout
contrl+12 contrl[6] handle
contrl+14 contrl[7,8] pusrcode
contrl+18 contrl[9,10] psavcode