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.5.36 Bindings for v_pieslice TOS
C: void v_pieslice ( int16_t handle, int16_t x, int16_t y,
int16_t radius, int16_t begang, int16_t endang );
Binding:
void v_pieslice (int16_t handle, int16_t x, int16_t y,
int16_t radius, int16_t begang, int16_t endang)
{
ptsin[0] = x;
ptsin[1] = y;
ptsin[2] = ptsin[3] = ptsin[4] = ptsin[5] = 0;
ptsin[6] = radius;
ptsin[7] = 0;
intin[0] = begang;
intin[1] = endang;
contrl[0] = 11;
contrl[1] = 4;
contrl[3] = 2;
contrl[5] = 3;
contrl[6] = handle;
vdi ();
}
GEM-Arrays:
Address Element Contents
contrl contrl[0] 11 # Function Opcode
contrl+2 contrl[1] 4 # entry in ptsin
contrl+4 contrl[2] 0 # entry in ptsout
contrl+6 contrl[3] 2 # entry in intin
contrl+8 contrl[4] 0 # entry in intout
contrl+10 contrl[5] 3 GDP-number
contrl+12 contrl[6] handle
intin intin[0] begang
intin+2 intin[1] endang
ptsin ptsin[0] x
ptsin+2 ptsin[1] y
ptsin+4 ptsin[2..5] 0
ptsin+12 ptsin[6] radius
ptsin+14 ptsin[7] 0