| delorie.com/archives/browse.cgi | search |
| From: | "Markus Malmgren" <maad AT hem DOT passagen DOT se> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Inline ASM help. |
| Date: | 16 Oct 1996 14:27:51 GMT |
| Organization: | - |
| Lines: | 11 |
| Message-ID: | <01bbbaa5$4f434740$8361f482@s-14476> |
| References: | <326425F1 DOT 10C1 AT agt DOT net> |
| NNTP-Posting-Host: | dialup97-6-11.swipnet.se |
| NNTP-Posting-User: | s-14476 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
> 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!
>
Try this:
__asm__ __volatile__("
movw $0x0013,%ax
int $0x10")
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |