delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/29/16:24:37

Sender: nate AT cartsys DOT com
Message-ID: <37792AAA.CC3DD8CB@cartsys.com>
Date: Tue, 29 Jun 1999 13:20:58 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.10 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: NASM + DJGPP linking
References: <930622805 DOT 86738 AT kyle DOT inet DOT net DOT nz>
Reply-To: djgpp AT delorie DOT com

David Mitchell wrote:
> 
> Umm, I have written the following for NASM:
[snip]
> and compiled it as a COFF, then I compiled it with this file :
> 
> extern void setmode(int mode);
> 
> void main(void) {
>     setmode(0x13);
> }
> 
> using the line (DJGPP):
> >>gcc main.c graphics.o
> 
> creating a file a.exe
> 
> when I run a.exe, nothing happens.  But it should change to screen 13h.
> What is happening, can somebody please help!

DJGPP already has a function called `setmode', and it may well be that
you're calling it instead of yours.  Try changing the name.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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