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-File7.5.36 Bindings für 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 );
Umsetzung:
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:
Adresse Feldelement Belegung
contrl contrl[0] 11 # Opcode der Funktion
contrl+2 contrl[1] 4 # Einträge in ptsin
contrl+4 contrl[2] 0 # Einträge in ptsout
contrl+6 contrl[3] 2 # Einträge in intin
contrl+8 contrl[4] 0 # Einträge in intout
contrl+10 contrl[5] 3 GDP-Nummer
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