On Wed, 15 Aug 2012, David Griffith wrote:
On Wed, 15 Aug 2012, Chuck Guzis wrote:
On 15 Aug 2012 at 16:15, David Griffith wrote:
The basic problem appears to be that the code
makes use of long ints.
DOS-16 mangles that, giving you only the bottom half.
What are you using for a C compiler? Most 16-bit DOS C compilers and
runtimes handle "long" and "unsigned long" just fine as 32-bit
numbers.
If it's the matter of the source (that 32-bit platforms treat "int"
as 32 bits), consider creating a conditional typedef for the int type-
-define it as "int" for the large platforms and "long" for the 16-
bitters.
I'm using Turbo C++ 3.00. It's definitely chopping off half of the bits.
Dave, I'd give Open Watcom a shot - it includes a DOS extender if you need
it.
g.
--
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
Some people collect things for a hobby. Geeks collect hobbies.
ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://www.scarletdme.org - Get it _today_!
Buying desktop hardware and installing a server OS doesn't make a
server-class system any more than sitting in a puddle makes you a duck.
[Cipher in a.s.r]