delorie.com/archives/browse.cgi | search |
From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: ASM function? |
Organization: | Pin Eight Software http://pineight.8m.com/ |
Message-ID: | <0gjt0t084ejt084ite0jgjcrd9gs7ugn5n@4ax.com> |
References: | <8umg84$3vh$1 AT lacerta DOT tiscalinet DOT it> |
X-Newsreader: | Forte Agent 1.7/32.534 |
MIME-Version: | 1.0 |
Lines: | 34 |
X-Trace: | /bJ8XXkvxZnO5NxwhucOb3/rQBvvYbKheIHmnCeIxOW/2XR9hq+WpYVtynEUY6MgC1ESDu5IhupW!OzOp/mEAoYb/i+Vir/MBq8Yr3I5u5XtEY/X0KhZapX2lQ9Z6BqBkYN++aBG9lM0JRihYiRzxdtfu!Mfm+6w== |
X-Complaints-To: | abuse AT gte DOT net |
X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
NNTP-Posting-Date: | Sun, 12 Nov 2000 17:09:01 GMT |
Distribution: | world |
Date: | Sun, 12 Nov 2000 17:09:02 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Sun, 12 Nov 2000 17:23:18 +0100, "R.e." <re_0 AT fcmail DOT com> wrote: >hi, >i have write this very much simple program that do nothing: > >#include <stdio.h> >#include <conio.h> >main() >{ > asm{ > mov ax,3h > int 10h > } > return (0); >} > >When i compile it with djgpp i see this error: > >"The system cannot execute the specified program." > >How *.h file i must use for the asm function? DJGPP's inline assembly is _very_ different from Borland's. Much of the time, you can get away with not using it at all; to call a BIOS service, use __dpmi_int() instead of inline assembly. C:\>info libc a __dpmi_int -- <O ( \ GNOME vs. KDE: the game! X http://pineight.8m.com/nes.htm This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |