Sender: nate AT cartsys DOT com Message-ID: <37792AAA.CC3DD8CB@cartsys.com> Date: Tue, 29 Jun 1999 13:20:58 -0700 From: Nate Eldredge 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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