30 lines
666 B
C
30 lines
666 B
C
|
#include "vga.h"
|
|||
|
#include "video.h"
|
|||
|
|
|||
|
/*******************************************************************************/
|
|||
|
|
|||
|
/* affiche une chaine de caract<63>re a l'<27>cran */
|
|||
|
|
|||
|
void print(u8* string)
|
|||
|
{
|
|||
|
u8 *source;
|
|||
|
source = string;
|
|||
|
while(*source!=0x00)
|
|||
|
{
|
|||
|
showchar(*source++);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
/*******************************************************************************/
|
|||
|
|
|||
|
/* affiche un octet sous forme hexad<61>cimale a l'ecran */
|
|||
|
|
|||
|
void showhex(u8 src)
|
|||
|
{
|
|||
|
static u8 hexadigit[16] = "0123456789ABCDEF";
|
|||
|
showchar(hexadigit[(src&0xF0)>>4]);
|
|||
|
showchar(hexadigit[src&0x0F]);
|
|||
|
}
|
|||
|
|
|||
|
/*******************************************************************************/
|