Text Output Functions

All the text output functions have two forms, one where you directly specify the video memory address, and another one where you specify x/y coordinates (in character units). The second form is a bit slower but more user-friendly.


put_digit( unsigned char digit, unsigned char bat_x, unsigned char bat_y );

Output a digit character '0'-'9' given its numeric value. Hexa digits ('A'-'F') are also supported, a value of 10 will output 'A', a value of 11 will output 'B', and so on...


put_char( unsigned char digit, unsigned char bat_x, unsigned char bat_y );

Output an ASCII character.


put_hex( unsigned int number, unsigned char length,
unsigned char bat_x, unsigned char bat_y );

Output an hexa number. The 'length' argument is used to format the number. As many as 'length' digit(s) will be displayed. If the number has less than 'lgenth' digit(s), blank spaces will be added to its left.


put_number( unsigned int number, unsigned char length,
unsigned char bat_x, unsigned char bat_y );

Output a signed number. The 'length' argument is used to format the number. As many as 'length' digit(s) will be displayed. If the number has less than 'lgenth' digit(s), blank spaces will be added to its left. If the number is negative, a '-' sign is added.


put_string( unsigned char *string, unsigned char bat_x, unsigned char bat_y );

Output a null terminated ASCII string.

Last updated