2018-09-28 20:35:51 +02:00
|
|
|
/*******************************************************************************/
|
|
|
|
/* COS2000 - Compatible Operating System - LGPL v3 - Hordé Nicolas */
|
|
|
|
/* */
|
2018-10-07 12:57:38 +02:00
|
|
|
|
|
|
|
#include "stdarg.h"
|
|
|
|
|
2007-04-02 16:02:21 +02:00
|
|
|
typedef struct console {
|
|
|
|
u8 attrib;
|
|
|
|
s16 cursX;
|
|
|
|
s16 cursY;
|
|
|
|
u8 ansi;
|
|
|
|
u8 param1;
|
|
|
|
u8 param2;
|
|
|
|
u8 param3;
|
|
|
|
u8 page;
|
|
|
|
} console __attribute__ ((packed));
|
|
|
|
|
|
|
|
|
2007-04-02 15:15:18 +02:00
|
|
|
void showhex(u8 src);
|
2007-04-02 15:39:09 +02:00
|
|
|
void putchar(u8 thechar);
|
2018-08-29 10:12:00 +02:00
|
|
|
u32 print(u8* string);
|
|
|
|
u32 printf (const u8 *string, ...);
|
2007-04-02 16:02:21 +02:00
|
|
|
void changevc(u8 vc);
|
2018-09-27 21:01:02 +02:00
|
|
|
u8* itoa(u64 num, u8* str, u8 base, u64 dim, u8 achar);
|
2018-09-28 00:03:45 +02:00
|
|
|
u8* sitoa(u64 num, u8 * str, u64 dim);
|
2018-10-05 22:56:58 +02:00
|
|
|
u8* rtoadouble(double num, u8 * str, u8 precisioni , u8 precisionf);
|
|
|
|
u8* rtoasingle(float num, u8 * str, u8 precisioni , u8 precisionf);
|
2018-10-07 12:57:38 +02:00
|
|
|
u32 format(const u8 * string, va_list args, u32 (*fonction)(u8* src, u8** dest, u32 len), u8* dest);
|