Are you running on a 16-bit machine (8086) or are you simply
running in DOS in real-mode on a 32-bit capable processor (80386+)?
If the latter, just get a DOS extender, like the one that comes with
DJGPP. Code written for 32-bit machines frequently makes
assumptions such as that sizeof(int) == sizeof(char*). With
an extender, you get a 32-bit address flat address space and
it will just work.
--Bill
--- On Wed, 8/15/12, David Griffith <dgriffi at cs.csubak.edu> wrote:
From: David Griffith <dgriffi at cs.csubak.edu>
Subject: Re: 32-bit code in 16 bits
To: "General Discussion: On-Topic and Off-Topic Posts" <cctalk at
classiccmp.org>
Date: Wednesday, August 15, 2012, 12:52 AM
On Tue, 14 Aug 2012, David Griffith
wrote:
Is there anyone here who understands 16-bit DOS
coding
well enough to help me make some 32-bit code work in 16-bit
DOS?
Some background stuff: the problems seem to hinge on the
fact that unsigned longs are used all over the place.?
I'm thinking that if somehow I can come up with a crutch for
processing these variables, I could make it work.
-- David Griffith
dgriffi at
cs.csubak.edu
A: Because it fouls the order in which people normally read
text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?