Mail Archives: djgpp/1996/10/07/00:07:37
Kim Robert Blix wrote:
>
> Hi there.. I've just started to use djgpp. (Made hello world yesterday, and
> it was only 80kb hehe.) And I've encountered a problem..
>
> Why doesnt this work?:
>
> asm(" movw $13,%ax
> int $10
> ");
>
> Asm I'm sure you can see, this is supposed to be a no-trouble, basic
> mode change to 320*200*256 chunky style, but I get a hang instead.
>
> Any help on this would be greatly appreciated, and a sample procedure
> for regular mode change (no vesa), would grant you my eternal love.
>
> Thank you in advance.
Pretty basic, really. You gave decimal numbers when you want hex...
Change your code to:
asm(" movw $0x13,%ax
int $0x10
");
and it will work as expected (btw you can also use 0b00010011 in your asm code)
Bill
- Raw text -