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.8.1.10 Bindings für vq_scan TOS
C: void vq_scan ( int16_t handle, int16_t *g_slice, int16_t
*g_page, int16_t *a_slice, int16_t *a_page, int16_t
*div_fac );
Umsetzung:
void vq_scan (int16_t handle, int16_t *g_slice,
int16_t *g_page, int16_t *a_slice,
int16_t *a_page, int16_t *div_fac)
{
contrl[0] = 5;
contrl[1] = 0;
contrl[3] = 0;
contrl[5] = 24;
contrl[6] = handle;
vdi ();
*g_slice = intout[0];
*g_page = intout[1];
*a_slice = intout[2];
*a_page = intout[3];
*div_fac = intout[4];
}
GEM-Arrays:
Adresse Feldelement Belegung
contrl contrl[0] 5 Opcode der Funktion
contrl+2 contrl[1] 0 # Einträge in ptsin
contrl+4 contrl[2] 0 # Einträge in ptsout
contrl+6 contrl[3] 0 # Einträge in intin
contrl+8 contrl[4] 5 # Einträge in intout
contrl+10 contrl[5] 24 # Escape/Sub-Opcode
contrl+12 contrl[6] handle
intout intout[0] g_slice
intout+2 intout[1] g_page
intout+4 intout[2] a_slice
intout+6 intout[3] a_page
intout+8 intout[4] div_fac