On 8/15/2012 7:37 PM, Chuck Guzis wrote:
On 15 Aug 2012 at 19:22, David Griffith wrote:
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.
I *knew* there was a reason that I stayed away from Borland.
Microsoft C handles 32-bit ints just fine. Are you certain it's not
just a matter of a misplaced or missing cast?
As long as you don't mind restricting the thing to 386+ platforms,
you can use something like DJGPP that comes with its own DPMI server.
--Chuck
i have a microdata 32/s simulator written in borland c. A friend wrote
it before he passed away, and I don't have good access to his toolchain,
to you got what you got. It's been a real chore trying to get it to
work in gcc.
We discussed using gcc before he stated coding and he had borland on his
home computer. maybe someday I'll get it to work with gcc, but for now
he took maximum advantage of the 16 bit'ness since there were a lot of
16 bit operations the hardware did very well.