delorie.com/archives/browse.cgi | search |
From: | "Johan Venter" <jventer AT writeme DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <CaFa3.668$6V3 DOT 153869 AT news DOT sgi DOT net> <929813929 DOT 718267 AT diddley DOT primus DOT com DOT au> |
Subject: | Re: need help compiling |
Lines: | 41 |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.1 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
Message-ID: | <bC%a3.13108$PN5.34361@newsfeeds.bigpond.com> |
Date: | Sun, 20 Jun 1999 15:09:16 +1000 |
NNTP-Posting-Host: | 203.40.82.105 |
X-Trace: | newsfeeds.bigpond.com 929859079 203.40.82.105 (Sun, 20 Jun 1999 16:11:19 EST) |
NNTP-Posting-Date: | Sun, 20 Jun 1999 16:11:19 EST |
Organization: | Telstra BigPond Internet Services (http://www.bigpond.com) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Steven Taylor wrote in message <929813929 DOT 718267 AT diddley DOT primus DOT com DOT au>... >Try renaming it to vesa.cc (C++) or vesa.c (C). > Steven, did you look at the code? The offending procedure: void putpixel (int i, int j, int color) { char far *address; //WILL NOT WORK IN DJGPP long int location, offset; int bank; if (mode == 0x13) offset = linetable[j] + (long)i; else { location = linetable[j] + (long)i; bank = location >> locationshift; offset = location - ((long)bank << locationshift); if (bank != activebank) { activebank = bank; bank = bank << bankshift; asm mov dx, [bank]; //CANNOT WORK IN DJGPP!!!! asm mov bx, 0000h; asm call dword ptr [winfuncptr]; } } address = (char far *)(0xA0000000L + offset); //WON'T WORK EITHER *address = color; } -- Johan Venter ICQ 3643877 Visit The TPU DJGPP Interest Group: http://surf.to/djgppig
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |