Mail Archives: djgpp/1999/06/29/16:24:37
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 -