Board index » delphi » 16-bit to 32-bit

16-bit to 32-bit

I have written couple of 16-bit DOS chess programs with TP7. I'm going
to make a Winboard-engine from my program. My problem is that Winboard
program won't communicate with 16-bit executables but 32-bit.

What would be the easiest way for me to make my program 32-bit?
It's very simple program using just standard input and output.
Can it be compiled with Delphi, or are there even methods to change
16-bit exes into 32-bit?

                                        Jari
--
PER ARDUA IN FIDE SERVITE DEO

http://www.mit.jyu.fi/~huikari/

 

Re:16-bit to 32-bit


Quote
In article <8qadfi$3c...@mordred.cc.jyu.fi>, Jari Huikari wrote:
>I have written couple of 16-bit DOS chess programs with TP7. I'm going
>to make a Winboard-engine from my program. My problem is that Winboard
>program won't communicate with 16-bit executables but 32-bit.

>What would be the easiest way for me to make my program 32-bit?
>It's very simple program using just standard input and output.
>Can it be compiled with Delphi, or are there even methods to change
>16-bit exes into 32-bit?

Afaik there are no ways to do that conversion on .EXE's.

If it is possible to simply recompile using a 32-bit compiler depends on the
program.

Re:16-bit to 32-bit


Marco van de Voort <mar...@snail.stack.nl> wrote:

Quote
> In article <8qadfi$3c...@mordred.cc.jyu.fi>, Jari Huikari wrote:
>>I have written couple of 16-bit DOS chess programs with TP7. I'm going
>>to make a Winboard-engine from my program. My problem is that Winboard
>>program won't communicate with 16-bit executables but 32-bit.
> If it is possible to simply recompile using a 32-bit compiler depends on the
> program.

It's very standard pascal, some procedures and functions of Crt and Dos
units are used (Gettime, Keypressed). Could someone here try to compile
it, if I'll put the source to my www-directory? (It's one big file, 50 kB
or something.)

                                        Jari
--
PER ARDUA IN FIDE SERVITE DEO

http://www.mit.jyu.fi/~huikari/

Re:16-bit to 32-bit


Quote
In article <8qafdb$46...@mordred.cc.jyu.fi>, Jari Huikari wrote:
>Marco van de Voort <mar...@snail.stack.nl> wrote:
>> In article <8qadfi$3c...@mordred.cc.jyu.fi>, Jari Huikari wrote:
>>>I have written couple of 16-bit DOS chess programs with TP7. I'm going
>>>to make a Winboard-engine from my program. My problem is that Winboard
>>>program won't communicate with 16-bit executables but 32-bit.

>> If it is possible to simply recompile using a 32-bit compiler depends on the
>> program.

>It's very standard pascal, some procedures and functions of Crt and Dos
>units are used (Gettime, Keypressed). Could someone here try to compile
>it, if I'll put the source to my www-directory? (It's one big file, 50 kB
>or something.)

Ok, as soon as I get it I'll try to compile it with Free Pascal. (which is
the 32-bit compiler I know best)

Re:16-bit to 32-bit


Quote
> >It's very standard pascal, some procedures and functions of Crt and Dos
> >units are used (Gettime, Keypressed). Could someone here try to compile
> >it, if I'll put the source to my www-directory? (It's one big file, 50 kB
> >or something.)

> Ok, as soon as I get it I'll try to compile it with Free Pascal. (which is
> the 32-bit compiler I know best)

If you wish you can email it to mar...@fate.stack.nl

Note: this is a different address than usual, which I use for big
attachments.

--

Marco van de Voort (Mar...@stack.nl or ma...@freepascal.org)

Re:16-bit to 32-bit


Marco van de Voort <mar...@stack.nl> wrote:

Quote
> If you wish you can email it to mar...@fate.stack.nl

I'd like to see the code for that chess programm(s) to, if Jari Huikari
would allow that, so maybe loading it up to his Hompage would be the better
plan.

Thanks

    Martin

Quote

> Marco van de Voort (Mar...@stack.nl or ma...@freepascal.org)

Re:16-bit to 32-bit


Quote
Martin <m.fic...@cityweb.de> wrote:
> Marco van de Voort <mar...@stack.nl> wrote:
>> If you wish you can email it to mar...@fate.stack.nl
> I'd like to see the code for that chess programm(s) to, if Jari Huikari
> would allow that, so maybe loading it up to his Hompage would be the better
> plan.

I can email to Marco and also put the sources to my homepage for you to
download. Also the one with GUI. (It's not so strong chess program. There
are better sources available. And it's not commented much.)

If anyone interested in having my chess programs (not sources yet) they
can be found from   http://www.mit.jyu.fi/~huikari/download.html

                                        Jari
--
PER ARDUA IN FIDE SERVITE DEO

http://www.mit.jyu.fi/~huikari/

Re:16-bit to 32-bit


Jari Huikari <huik...@jane.it.jyu.fi> schrieb in im Newsbeitrag:
- I can email to Marco and also put the sources to my homepage for you to
- download. Also the one with GUI. (It's not so strong chess program. There
- are better sources available. And it's not commented much.)

Thanks a lot,  i had already a look at your "Nero", and i liked it (I'm not
very good in chess, so it is strong enough). I thougth it would be
interesting how such programms work.

Martin

Re:16-bit to 32-bit


Re:16-bit to 32-bit


Quote
Martin <m.fic...@cityweb.de> wrote:
> Thanks a lot,  i had already a look at your "Nero", and i liked it (I'm not
> very good in chess, so it is strong enough). I thougth it would be
> interesting how such programms work.

Sources of Nero can be downloaded from:
http://www.mit.jyu.fi/~huikari/N5SOURCE.ZIP

The WB-engine source, for which I need help in compiling 32-bit, can
be found from:
http://www.mit.jyu.fi/~huikari/NEROWB.PAS

                                        Jari
--
PER ARDUA IN FIDE SERVITE DEO

http://www.mit.jyu.fi/~huikari/

Re:16-bit to 32-bit


Quote
In article <8qq5dd$hp...@mordred.cc.jyu.fi>, Jari Huikari wrote:
>Martin <m.fic...@cityweb.de> wrote:

>> Thanks a lot,  i had already a look at your "Nero", and i liked it (I'm not
>> very good in chess, so it is strong enough). I thougth it would be
>> interesting how such programms work.

>Sources of Nero can be downloaded from:
>http://www.mit.jyu.fi/~huikari/N5SOURCE.ZIP

I quickly looked, and fdelay is seriously system dependant. It could (maybe)
get fixed to compile under 32-bits dos, but never on other OSes.

However Crt.Delay IS implemented for most OSes.

Quote
>The WB-engine source, for which I need help in compiling 32-bit, can
>be found from:
>http://www.mit.jyu.fi/~huikari/NEROWB.PAS

Hmm. This one compiles in FPC unmodified (on FreeBSD)

Re:16-bit to 32-bit


Quote
Jari Huikari wrote...
>Sources of Nero can be downloaded from:
>http://www.mit.jyu.fi/~huikari/N5SOURCE.ZIP

>The WB-engine source, for which I need help in compiling 32-bit, can
>be found from:
>http://www.mit.jyu.fi/~huikari/NEROWB.PAS

There is a bgidriv.pas missing; and I don't have it on my TP5.5.
Where can I find bgidriv.pas?

Re:16-bit to 32-bit


Quote
Mason Ip <maso...@attachmate.co_> wrote:
> There is a bgidriv.pas missing; and I don't have it on my TP5.5.
> Where can I find bgidriv.pas?

I have TP7, And foubd it in some of the sub-directories of it.
I don't know whether TP5.5 has it, but you can check your subdirs.
Earlier I didn't use bgidriv, but only the initgraph-command, and
included the file EGAVGA.BGI with my programs. You can try that kind
of solution.
                                        Jari
--
PER ARDUA IN FIDE SERVITE DEO

http://www.mit.jyu.fi/~huikari/

Re:16-bit to 32-bit


Marco van de Voort <mar...@toad.stack.nl> wrote:

Quote
> In article <8qq5dd$hp...@mordred.cc.jyu.fi>, Jari Huikari wrote:
>>Martin <m.fic...@cityweb.de> wrote:

>>> Thanks a lot,  i had already a look at your "Nero", and i liked it (I'm not
>>> very good in chess, so it is strong enough). I thougth it would be
>>> interesting how such programms work.

>>Sources of Nero can be downloaded from:
>>http://www.mit.jyu.fi/~huikari/N5SOURCE.ZIP
> I quickly looked, and fdelay is seriously system dependant. It could (maybe)
> get fixed to compile under 32-bits dos, but never on other OSes.

It can be dropped away. I have only used it to get rid of that infamous
runtime error 200 of my TP7.
                                        Jari
--
PER ARDUA IN FIDE SERVITE DEO

http://www.mit.jyu.fi/~huikari/

Re:16-bit to 32-bit


Quote
In article <8qskjd$hv...@mordred.cc.jyu.fi>, Jari Huikari wrote:
>Marco van de Voort <mar...@toad.stack.nl> wrote:
>> In article <8qq5dd$hp...@mordred.cc.jyu.fi>, Jari Huikari wrote:
>>>Martin <m.fic...@cityweb.de> wrote:

>>>> Thanks a lot,  i had already a look at your "Nero", and i liked it (I'm not
>>>> very good in chess, so it is strong enough). I thougth it would be
>>>> interesting how such programms work.

>>>Sources of Nero can be downloaded from:
>>>http://www.mit.jyu.fi/~huikari/N5SOURCE.ZIP

>> I quickly looked, and fdelay is seriously system dependant. It could (maybe)
>> get fixed to compile under 32-bits dos, but never on other OSes.

>It can be dropped away. I have only used it to get rid of that infamous
>runtime error 200 of my TP7.

I did, and I can compile it under Linux. Besides that, the only change was
removing the line that registers the egavgabgi. (which isn't necessary, FPC
is not BGI based, but compatible to it, with an internal VGA and VESA
compatible driver).

But I don't have permissions to run graphical programs on that Linux
machine, so testing will have to wait till tonight.

So nearly everything compiles without modifications.

Go to page: [1] [2]

Other Threads