[Prev][Next][Index][Thread]

I big question



Hi there people.

My name's Arturo Busleiman, I'm from Argentina.
I'm a member of a team which is now programming an operating system, and
we are using your OS-Kit.

I was asked to program routines to call some BIOS functions like ah=$0x2 
(INT $10) [that's move cursor to x,y].
I would like to know how do I make them work. This is the code I currently
have (I have a .code16 version, so I can use ch,cl, etc and not cx)

void
gotoxy (unsigned char x, unsigned char y)
{
asm (".code16");
asm ("mov	$0x2,%ah");
asm ("mov	$0x0,%bh");
asm ("mov	%0,%%dh" : : "r" (y));
asm ("mov	%0,%%dl" : : "r" (x));
asm ("int	$0x10");
}

Why doesn't this work?
Is there any other way to use BIOS functions?

I _desperately_ need your advice, please help me!

Thank you in advance,
Arturo Alberto Busleiman



Follow-Ups: