delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/16/01:58:47

From: Marshall <MarshallK AT agt DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Inline ASM help.
Date: Tue, 15 Oct 1996 19:59:59 -0600
Organization: AGT Ltd.
Lines: 14
Message-ID: <3264419F.1E4B@agt.net>
References: <326425F1 DOT 10C1 AT agt DOT net>
NNTP-Posting-Host: rddrpx01-port-22.agt.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Marshall wrote:
> 
> I have looked around in the docs and can't quite figure out how to call
> an interrupt in inline assembly with DJGPP. I want to set the monitor to
> video mode 13h using interrupt 10. I was wondering if someone could post
> an example or mail me one. Thanks in advance!

I figured this one out myself.

void main(void)
{
	__asm__("movw $0x13, %ax\n\t"
		"int $0x10")
}

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019