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-File8.20.3.1 Bindings für fnts_create TOS
C: FNT_DIALOG *fnts_create ( int16_t vdi_handle, int16_t
no_fonts, int16_t font_flags, int16_t dialog_flags,
int8_t *sample, int8_t *opt_button );
Umsetzung:
FNT_DIALOG *fnts_create ( int16_t vdi_handle, int16_t no_fonts,
int16_t font_flags,
int16_t dialog_flags, int8_t *sample,
int8_t *opt_button )
{
addr_in[0] = sample;
addr_in[1] = opt_button;
int_in[0] = vdi_handle;
int_in[1] = no_fonts;
int_in[2] = font_flags;
int_in[3] = dialog_flags;
crys_if (180);
return ( addr_out[0] );
}
GEM-Arrays:
Adresse Feldelement Belegung
control control[0] 180 # Opcode der Funktion
control+2 control[1] 4 # Einträge in int_in
control+4 control[2] 0 # Einträge in int_out
control+6 control[3] 2 # Einträge in addr_in
control+8 control[4] 1 # Einträge in addr_out
addr_in addr_in[0] sample
addr_in+4 addr_in[1] opt_button
int_in int_in[0] vdi_handle
int_in+2 int_in[1] no_fonts
int_in+4 int_in[2] font_flags
int_in+6 int_in[3] dialog_flags
addr_out addr_out[0] Return-Wert