Lazarus

Free Pascal => Other OS => Topic started by: mercurhyo on March 20, 2019, 09:43:41 am

Title: my gift to advanced testers
Post by: mercurhyo on March 20, 2019, 09:43:41 am
hi folks
this is a little archive I made for fun on windows! but can be easily ported to linux!
it contains
- DOSBox-lfn (an emulated DOS working with long filenames enabled)
- turbo pascal 7.1 installed (turbo7 folder)
- FreePascal 3.04 preinstalled (fpdos folder)

usage under windows OSes :

- unzip the archive on a harddrive at root folder ("\")
- go to the dosbox folder
- run dosbox.exe
---
edit dosbox.conf with notepad at your convenience to modify ram amount, cpu speed etc etc

---

in dosbox at prompt

- type "fp" to launch freepascal ide
- type "turbo" to launch tp7 ide realmode ide
- type "tpx" to launch tp7 protected mode ide
- type "install" to reinstall freepascal

---
I also chiped "cwsdpmi" protected mode driver and its "cwsparam" config tool
---
note : unfortunately the help system from tp7 is french (i was looking for an english one) ... but who cares? lol

download link for tp7andfp.zip (88011KB)

Moderator update: link removed, please do not refer to illegal content from FPC forum. A French version had been made available for download by the copyright owner some time ago, you may be able to find it on their site and use it from there if necessary.

to port on nix OSes
- get DOSbox LFN enabled and install it
- unzip "fpdos" and "turbo7" folders from the archive
- edit "dosbox.conf"... at the end of the file to mount "fpdos" and "turbo7" as "C:" and "D:" dos drives respectively
Title: Re: my gift to advanced testers
Post by: 440bx on March 20, 2019, 10:19:29 am
Thank you :)
Title: Re: my gift to advanced testers
Post by: mercurhyo on March 20, 2019, 02:44:13 pm
rem:

I learnt something with that emulated installation. fpc ide works under 16bits dos protected mode and produces 16bits dos protected mode appz WHILE turbo pascal 7 tpx extended ide works under 32bits dos protected mode but produces dos real mode appz.

I discovered that by following way

dos commands =>
Quote
- lh cwsdpmi.exe -p (* load 16bits dos protected mode driver, "-p" means stay resident TSR *)

- fp (* runs FP IDE, all fine *)

- tpx (* runs turbo pascal 7 ide, won't work complaining about 16bits protected mode  *)

TPX says
"16-bit DPMI unsupported.
Loader error (0001): out of memory"

DOS supports ONLY ONE dmpi driver at time
Title: Re: my gift to advanced testers
Post by: Bart on March 20, 2019, 03:28:53 pm
- turbo pascal 7.1 installed (turbo7 folder)

You cannot distribute that freely. It is still copyrighted material.

Bart
Title: Re: my gift to advanced testers
Post by: mercurhyo on March 20, 2019, 03:30:50 pm
that said... you can NOT speed benchmark the 2 compilers/environments. However you can compare pascal dialects compatibility on your owned old sources
Have Fun!
Title: Re: my gift to advanced testers
Post by: lucamar on March 20, 2019, 03:47:43 pm
fpc ide works under 16bits dos protected mode and produces 16bits dos protected mode appz WHILE turbo pascal 7 tpx extended ide works under 32bits dos protected mode but produces dos real mode appz.

It's just the contrary: CWSDPMI is a 32-bit extender, while Borland's extender is a 16-bit one (after all, Borland's had to work on a 80286).

Quote from: mercurhyo
TPX says
"16-bit DPMI unsupported.
Loader error (0001): out of memory"

What that message is saying is that CWSDMPI doesn't suppot 16-bit DPMI, which is what TPX needs.

Quote from: mercurhyo
DOS supports ONLY ONE dmpi driver at time

It's very tricky, but it can be made to support more than one ... provided they can be made to not interfere one with another---for example, one can use RTMRES (to pre-load Borland's extender) but launch an FPC program.

Of course, it's not recommended; but it can be done. :)
Title: Re: my gift to advanced testers
Post by: mercurhyo on March 20, 2019, 03:53:18 pm
@lucamar
plz launch my dosbox install and follow what i did, you'll see i am right

tp7.1 protmode is 32 bit they had to deal with win95  ;) its NOT tp5.5 where i would have to agree with you
Title: Re: my gift to advanced testers
Post by: lucamar on March 20, 2019, 04:08:47 pm
@lucamar
plz launch my dosbox install and follow what i did, you'll see i am right
Don't need to, I have my own DOSBox install with quite a lot more than just TP7 and FPC, incuding Turbo Pascal from 3.02 to the full BP 7.01

Quote from: mercurhyo
tp7.1 protmode is 32 bit they had to work with win95  ;) its NOT tp5.5 where i have to agree with you

No, it's not. Check the documentation. By the time Win95 came about Borland was already on Delphi 2 and Turbo Pascal had been superceeded by Delphi quite a few years ago.
BTW, the first TP with DMPI-extended compiler/IDE was TP6.0, not TP5.5

But the point, really, is that the message you're seeing is TPX telling you it can't initialize its 16-bit extender. Why? Because a 32-bit one, CWSDPMI, is already loaded. I've seen that kind of message before, while trying to load BP from the shell of a DJGPP program.
Title: Re: my gift to advanced testers
Post by: Bart on March 20, 2019, 04:12:42 pm
YES I PLAN TO MAKE BIG MONEY WITH DINOSAURWARE! ... AND PROMOTING JULIUS CAESAR... WHAT A JOKE! LOL

Nowhere did I imply that you wanted to make money of it.
Offering copyrighted software is, AFAIK, illegal.
And you do this on the official forum of FreePascal/Lazarus.
That could make us liable.

dear @Bart, I met so many fools along my life... do you feel you deserve a medal at that department??? bHAHAHA

That is uncalled for.

Bart
Title: Re: my gift to advanced testers
Post by: ASBzone on March 20, 2019, 04:51:17 pm
YES I PLAN TO MAKE BIG MONEY WITH DINOSAURWARE! ...

Copyright violations do not primarily hinge on whether or not there is economic gain for you...   ::)

IOW, it doesn't cease to be a copyright violation just because you don't plan, intend or manage to make money.
Title: Re: my gift to advanced testers
Post by: Tomas Hajny on March 20, 2019, 05:54:10 pm
As correctly pointed out by others, download of illegally distributed copyrighted material should not be promoted on FPC forum (on top of that, cross-posting to multiple fora should not be done either regardless of the particular content). I'm going to lock this topic now; please, start a new topic for potential continuation of discussion of running multiple DOS extenders in parallel, etc.
TinyPortal © 2005-2018