johangardhage/dos-tpdemos
About
Retro programming in Borland Turbo Pascal 7
Design & MediaMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originaldos-tpdemos
Retro programming in Borland Turbo Pascal 7

Prerequisites
To build and run the Borland Turbo Pascal demos, you must first install the following tools:
Install DOSBox Staging
Ubuntu
$ sudo add-apt-repository ppa:feignint/dosbox-staging
$ sudo apt update
$ sudo apt install dosbox-staging 7zip
macOS
$ brew install dosbox-staging sevenzip
Configuration
When starting dosbox-staging the first time, the configuration file dosbox-staging.conf will be generated in
- Ubuntu:
~/.config/dosbox/dosbox-staging.conf - macOS:
~/Library/Preferences/DOSBox/dosbox-staging.conf
Install Borland Turbo Pascal
Download Borland Turbo Pascal 7.01 (3.5-720k).7z
$ curl -o "Borland Turbo Pascal 7.01 (3.5-720k).7z" "https://dl.winworldpc.com/Borland%20Turbo%20Pascal%207.01%20(3.5-720k).7z"Extract the downloaded Borland Turbo Pascal archive
$ 7zz x "Borland Turbo Pascal 7.01 (3.5-720k).7z"Extract the Borland Turbo Pascal disk images
$ cd "Borland Turbo Pascal 7.01 (3.5-720k)"/ $ for i in *.img; do echo $i; 7zz x -y -otpsetup $i; doneMove the extracted files to the DOS C: drive
$ mkdir -p ~/DOSBox $ mv tpsetup ~/DOSBox/Configure DOSBox Staging
Edit
dosbox-staging.conf(see Configuration) and add the following autoexec options[autoexec] mount c ~/DOSBox path %PATH%;C:\TP\BIN c:To run the demos at about the speed of a 486 DX2-66, set the following settings
[dosbox] machine = svga_paradise vmem_delay = off [cpu] core = auto cputype = auto cpu_cycles = 50000 cpu_throttle = offStart
dosbox-stagingand execute the Borland Turbo Pascal installation program$ dosbox-staging C:\> cd tpsetup C:\TPSETUP> install.exeIn the installation program, select the following options
Enter the SOURCE drive to use: C Enter the SOURCE Path: \TPSETUP Install Turbo Pascal on a Hard Drive Start Installation
Build demos
Link the dos-tpdemos git repository to the DOS C: drive
$ ln -s ~/git/dos-tpdemos ~/DOSBox/tpdemos
Build demos from DOS terminal
Execute build script
C:\TPDEMOS> buildall.batThe demos will be located in the
C:\TPDEMOS\BUILDdirectoryRun demo
C:\TPDEMOS> build\demo01.exe
Build demos from Borland Turbo Pascal IDE
Start Borland Turbo Pascal IDE
C:\TPDEMOS> turboConfigure Borland Turbo Pascal
Press
ALT+Ofor optionsSelect
Directoriesand type in the following directoriesEXE & TPU directory: C:\TPDEMOS\BUILD Include directories: C:\TPDEMOS\ASSETS Unit directories: C:\TP\UNITS;C:\TPDEMOS\SRC\LIBSelect
Compilerand the following options[X] 286 instructions [X] 8087/80287Select
Environment,Preferencesand the following options[ ] Auto save [ ] Change dir on openSelect
Environment,Editorand the following options[ ] Create backup filesSelect
SaveOpen demo source file
Press
F3to open fileBuild demo source file
Press
F9to build fileRun demo
Press
ALT+RandRto run demo
License
Licensed under MIT license. See LICENSE for more information.
Authors
- Johan Gardhage
Screenshots

Explore related projects
Loading…