| www.delorie.com/archives/browse.cgi | search |
| From: | Nate Eldredge <neldredge AT hmc DOT edu> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: ASM function? |
| Date: | 12 Nov 2000 09:39:50 -0800 |
| Organization: | InterWorld Communications |
| Lines: | 35 |
| Sender: | nate AT mercury DOT st DOT hmc DOT edu |
| Message-ID: | <83lmupgkd5.fsf@mercury.st.hmc.edu> |
| References: | <8umg84$3vh$1 AT lacerta DOT tiscalinet DOT it> |
| NNTP-Posting-Host: | mercury.st.hmc.edu |
| Mime-Version: | 1.0 |
| X-Trace: | nntp1.interworld.net 974050791 56163 134.173.57.219 (12 Nov 2000 17:39:51 GMT) |
| X-Complaints-To: | usenet AT news DOT interworld DOT net |
| NNTP-Posting-Date: | Sun, 12 Nov 2000 17:39:51 +0000 (UTC) |
| User-Agent: | Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
There appear to be two problems here.
"R.e." <re_0 AT fcmail DOT com> writes:
> 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."
That doesn't sound like a DJGPP error. Can you run the compilation
with -v and post everything it prints out? Also post the contents of
your environment (output of the `set' command).
> How *.h file i must use for the asm function?
None, but the correct syntax is very different from what you're
using. See FAQ section 18.13.
--
Nate Eldredge
neldredge AT hmc DOT edu
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |