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.7.34 Bindings für vsm_valuator TOS
C: void vsm_valuator ( int16_t handle, int16_t val_in,
int16_t *val_out, int16_t *term, int16_t *status );
Umsetzung:
void vsm_valuator (int16_t handle, int16_t val_in,
int16_t *val_out, int16_t *term,
int16_t *status)
{
intin[0] = val_in;
contrl[0] = 29;
contrl[1] = 0;
contrl[3] = 1;
contrl[6] = handle;
vdi ();
*val_out = intout[0];
*term = intout[1];
*status = contrl[4];
}
GEM-Arrays:
Adresse Feldelement Belegung
contrl contrl[0] 29 # 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] 1 # Einträge in intin
contrl+8 contrl[4] status # Einträge in intout
contrl+12 contrl[6] handle
intin intin[0] val_in
intout intout[0] val_out
intout+2 intout[1] term