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.18 Bindings für v_ellarc TOS
C: void v_ellarc ( int16_t handle, int16_t x, int16_t y,
int16_t xradius, int16_t yradius, int16_t begang, int16_t
endang );
Umsetzung:
void v_ellarc (int16_t handle, int16_t x, int16_t y,
int16_t xradius, int16_t yradius, int16_t begang,
int16_t endang)
{
ptsin[0] = x;
ptsin[1] = y;
ptsin[2] = xradius;
ptsin[3] = yradius;
intin[0] = begang;
intin[1] = endang;
contrl[0] = 11;
contrl[1] = 2;
contrl[3] = 2;
contrl[5] = 6;
contrl[6] = handle;
vdi ();
}
GEM-Arrays:
Adresse Feldelement Belegung
contrl contrl[0] 11 # Opcode der Funktion
contrl+2 contrl[1] 2 # 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] 6 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] xradius
ptsin+6 ptsin[3] yradius