2007-04-02 14:52:01 +02:00
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#define TEXTSCREEN 0xB8000 /* debut de la memoire video texte*/
|
|
|
|
#define GRPHSCREEN 0xA0000 /* debut de la memoire video graphique*/
|
2007-04-02 15:38:45 +02:00
|
|
|
|
2007-04-02 15:14:21 +02:00
|
|
|
typedef u8 mode_def[64];
|
2007-04-02 14:52:01 +02:00
|
|
|
|
|
|
|
|
2007-04-02 15:14:21 +02:00
|
|
|
u32 setvmode(u8);
|
|
|
|
u32 loadfont(u8* def,u8 size,u8 font);
|
|
|
|
void gotoscr(u16 x,u16 y);
|
|
|
|
void useplane(u8 plan);
|
2007-04-02 16:01:49 +02:00
|
|
|
u8 getfont();
|
2007-04-02 15:14:21 +02:00
|
|
|
void setfont(u8 num);
|
2018-08-30 01:07:28 +02:00
|
|
|
void waitvretrace ();
|
|
|
|
void waithretrace ();
|
|
|
|
void enablecursor ();
|
|
|
|
void disablecursor ();
|
|
|
|
void enablescroll ();
|
|
|
|
void disablescroll ();
|
2007-04-02 15:14:21 +02:00
|
|
|
void (*writepxl)(u16 x, u16 y, u32 c);
|
2007-04-02 15:38:45 +02:00
|
|
|
void (*showchar)(u16 coordx,u16 coordy,u8 thechar,u8 attrib);
|
|
|
|
void (*fill)(u8 attrib);
|
|
|
|
void (*scroll)(u8 lines,u8 attrib);
|
2007-04-02 16:01:49 +02:00
|
|
|
void split(u16 x);
|
|
|
|
void showpage(u8 page);
|
|
|
|
u8 getpage();
|
|
|
|
void setpage(u8 page);
|
|
|
|
u16 getnbpages();
|
|
|
|
u16 getyres();
|
|
|
|
u8 getdepth();
|
|
|
|
u16 getxres();
|
|
|
|
u8 getfont2();
|
|
|
|
void enableblink();
|
|
|
|
void disableblink();
|
|
|
|
u8 (*getchar)(u16 coordx,u16 coordy);
|
|
|
|
u8 (*getattrib)(u16 coordx,u16 coordy);
|
2018-08-17 16:46:56 +02:00
|
|
|
void outreg(u16 port,u8 *src,u16 num);
|
|
|
|
void outregsame(u16 port,u8 *src,u16 num);
|
|
|
|
void inreg(u16 port,u8 *src,u16 num);
|
|
|
|
void inregsame(u16 port,u8 *src,u16 num);
|
2018-08-30 01:07:28 +02:00
|
|
|
u8 nextvmode();
|
|
|
|
u8 getvmode();
|