Date: Mon, 07 Oct 1996 16:26:00 +0000 From: Bill Currie Subject: Re: The first problem (a horror series in 10 parts) To: Kim Robert Blix Cc: djgpp AT delorie DOT com Message-id: <32592F18.17DC@blackmagic.tait.co.nz> Organization: Tait Electronics NZ MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit References: <539hek$6vf AT ranger DOT interlink DOT no> 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