graphics mode?
Posted: Mon Sep 30, 2002 4:57 pm
i'm trying to initalize graphics mode in my kernel, but it resets my machine. any ideas why? this is what i'm using:
; Set graphics mode 13h
mov ax, 13h
int 10h
but, i would also prefer C but i can't figure out how to port it to GCC
void graphicsmode()
{
asm("mov 0x13, %%ax "::);
asm("int 0x10 "::);
}
?? is that correct i get an error saying:
c:/djgpp/tmp/ccOK7Jyt.s: Assembler messages:
c:/djgpp/tmp/ccOK7Jyt.s:375: Error: suffix or operands invalid for `int'
c:/djgpp/tmp/ccOK7Jyt.s:545: Error: suffix or operands invalid for `int'
any ideas?
; Set graphics mode 13h
mov ax, 13h
int 10h
but, i would also prefer C but i can't figure out how to port it to GCC
void graphicsmode()
{
asm("mov 0x13, %%ax "::);
asm("int 0x10 "::);
}
?? is that correct i get an error saying:
c:/djgpp/tmp/ccOK7Jyt.s: Assembler messages:
c:/djgpp/tmp/ccOK7Jyt.s:375: Error: suffix or operands invalid for `int'
c:/djgpp/tmp/ccOK7Jyt.s:545: Error: suffix or operands invalid for `int'
any ideas?