J
Jean-Baptiste CAMPESATO
Hello,
I used GCC under Linux.
I want to change the graphic mode to write directly in the video memory.
I wrote that :
void setmode(unsigned int mode)
{
if (mode == 1)
{
__asm__("movl $0x13, %eax");
}
else
{
__asm__("movl $0x03, %eax");
}
__asm__("int $0x10");
}
I've a segfault at the "int instruction".
Thanks
I used GCC under Linux.
I want to change the graphic mode to write directly in the video memory.
I wrote that :
void setmode(unsigned int mode)
{
if (mode == 1)
{
__asm__("movl $0x13, %eax");
}
else
{
__asm__("movl $0x03, %eax");
}
__asm__("int $0x10");
}
I've a segfault at the "int instruction".
Thanks