Turbo Pascal With Dosbox User Manual
Turbo Pascal With Dosbox User Manual
Table of contents
Introduction ...................................................................................................... 3
Basic Infomations ............................................................................................... 3
System Requirements ..................................................................................... 4
Getting help .................................................................................................. 4
License ......................................................................................................... 4
View Version and Documents .......................................................................... 5
Shortcut ........................................................................................................ 6
Interface ........................................................................................................... 6
Main Interface ................................................................................................ 6
Menu bar ...................................................................................................... 7
Programming Center ...................................................................................... 9
Quick Start Guide ............................................................................................. 10
Open Turbo Pascal (With DOSBox) ................................................................. 10
Make and run my Program ............................................................................ 11
Use Turbo Pascal ............................................................................................. 12
Notes When Using Software .......................................................................... 12
New File ...................................................................................................... 13
Open file ..................................................................................................... 13
Save file ...................................................................................................... 15
Change Dir .................................................................................................. 15
Tools for programming ................................................................................. 16
Run and Complie ......................................................................................... 18
Error in Pascal ............................................................................................. 19
Clear and Refresh DOS Scrren ....................................................................... 21
Window manage .......................................................................................... 22
Use other functions ...................................................................................... 23
Exit Turbo Pascal ......................................................................................... 25
Sample in Pascal .......................................................................................... 25
Note When using a unikey with Turbo Pascal (With DOSBox) ............................ 26
Keyboard shortcut ........................................................................................ 27
Advanced Use .................................................................................................. 29
Modify and Repair ........................................................................................ 29
Edit DOSBox Conf file ................................................................................... 32
More Help ....................................................................................................... 33
Other Infomantion ........................................................................................... 34
2 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Introduction
Turbo Pascal (With DOSBox) (TPWDB) is a free and open source compiler and
Integrated Development Environment (IDE) for Pascal language on Windows 64 Bit and
32 Bit. Using basic Pascal programming, many functions, no need to install multiple
steps and integrate some other tools.
· Features of Turbo Pascal (With DOSBox)
Runs on Windows 32/64 Bit Thanks to DOSBox
No need to install multiple steps. Easy to use
A ddtoolclear/refreshscreenDOS(Shift+F3)
Run and access it all in one place with the Programming Center
Write Vietnamese easily in Turbo Pascal with TCVN library and Vietnamese
writing mode.
Thank you for using our Turbo Pascal (With DOSBox)
Thisuserʼsmanualisdesignedtobeareferencetoolforoperationofyoursystem.Here
you can find detailed operation information about Turbo Pascal (With DOSBox).
§ View License here (Including Third-Party License Agreement and License
Agreement here)
Also can be viewed by going to Programming Center of Turbo Pascal (With DOSBox)
and into tab About, clicking on License or read the License.txt file that can be accessed
from the directory path C:\TPWDB\Main\
§ Information about the release history, short information of the software can be
viewed at the Readme.txt file in the path C:\TPWDB\Main\ (Can be accessed from
Tab About in Programming Center)
§ Download the latest software releases at https://turbopascal-wdb.sourceforge.io
§ Copyright © 2017-2020. LưuNguyễnThiệnHậu.
Turbo Pascal (With DOSBox) is free and open-source under MIT License. Project is
hosted at Sourceforge.
Website: https://turbopascal-wdb.sourceforge.io
Basic Infomations
This section includes an overview of basic information about Turbo Pascal (With
DOSBox), including the following items:
3 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
· System Requirements
· Getting help
· License
· View Version and Documents
· Shortcut
System Requirements
These are the basic requirements for installing Turbo Pascal (With DOSBox).
Items Requirements
Windows
Windows XP SP3/7/8/8.1/10 (All In 32 and 64 bit Version)
Version Windows Server (2003 or higher)
Getting help
· You can download other user manual at Turbo Pascal's homepage (With DOSBox)
at: https://turbopascal-wdb.sourceforge.io/doku.php/support
· However, if you have the software installed from version 7.3.4 onwards, there will
be a User's Guide available when installing the software by accessing the User
Manual Section in the Start Menu.
· The manual of the software can also be accessed here through the User Manual
button in the Options and About interface.
· For more help, see section More Help for details
License
Turbo Pascal (With DOSBox) License Agreement
Copyright (C) 2017-2020. LưuNguyễnThiệnHậu
Turbo Pascal (With DOSBox) is free and open-source.
You can freely use Turbo Pascal (With DOSBox) under the terms of MIT License.
A bouttheMITLicense
Copyright2017-2020LưuNguyễnThiệnHậu
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
4 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
This software uses other 3rd party software based on the specified licenses
(including open source licenses) that the author offers.
5 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Shortcut
Information about the shortcuts in the software is in the table below.
Interface
This section includes introduction of the general interface in Turbo Pascal, including the
following sections:
· Main Interface
· Menu bar
· Programming Center
Main Interface
6 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
1. Menu bar : Where to store tasks to work on Turbo Pascal, see section .... for
detailed description.
2. Window Command line Programming: Where to edit and work Pascal programming
commands in pas or inc files.
· See more items for details: Make and run my Program and Sample in Pascal
3. Name file : Where to show pas file name. The format may be <file name> .pas or
NONAMExx.pas for an unsaved or newly created file (xx is the number of the newly
created file).
· See more items for details: New File Open file and Save file
4. Staus and most command bar: Where quick command buttons are at work, the red text to
the left of each command button name is the shortcut of the command button. See
section Menu bar for details.
Menu bar
The menu bar gives you access to all the features of Advanced Installer. It contains the
following sub menus: “File”, “Edit”, “Search”, “Run”, “Compile”,"Debug", "Tools,
“Options”,"Window" and “Help”.
7 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
8 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Programming Center
Since version 7.3.4. All startup, custom and access modes for Turbo Pascal and
DOSBox related documents will be included in the "Programming Center".
To get started, visit the "Programming Center" in the list of all applications in the Start
Menu (You can search for this application with the keyword "Programming Center"). A
dialog box appears as shown below. See also Edit DOSBox Conf file for more DOSBox
configuration functions.
9 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
This section includes a very basic user guide for Turbo Pascal beginners, including:
· Open Turbo Pascal (With DOSBox)
· Make and run my Program
For other uses, see More Help for details
10 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
To launch the software, open the Turbo Pascal icon (With DOSBox) on the
desktop, or go to Start> All Apps> Turbo Pascal (With DOSBox) > Turbo Pascal (With
DOSBox) or Open File Explorer to open the software
11 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
When programming the Pascal file, to run the file, go to Run> Run (or press F9). If
successful, the program will run.
NOTE: in the process of compiling or running the program, if there is an error (the
compiler has an error that will not show the above dialog box), an error will be
reported , see section Error in Pascal for details.
This section includes Turbo Pascal's basic usage instructions, including the following
sections:
· Notes When Using Software
· New File
· Open file
· Save file
· Change Dir
· Tools for programming
· Run and Complie
· Error in Pascal
· Clear and Refresh DOS Scrren
· Window manage
· Use other functions
· Exit Turbo Pascal
· Sample in Pascal
· Note When using a unikey with Turbo Pascal (With DOSBox)
· Keyboard shortcut
For other uses, see More Help for details.
12 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
(Note: Will not Compile or run File Pascal if In Programmer File Has Programming
Error, See Error In Pascal to see what the error is.)
· To Run file Pascal, Please Save File Before Use Command
(Note: Will not Compile or run File Pascal if In Programmer File Has Programming
Error, See Error In Pascal to see what the error is.)
· Do not close the window By clicking the X on the left corner of the
window you have to
go to File> Exit, if not, you can lose the file you are working on if you have
not already.
· Do not click away from the software window if you are running the
program,
including using the key combination to switch the Alt + Tab window,
otherwise you will not be able to click on the menu bars and other
components in Turbo Pascal.
· If you get a typo in Turbo Pascal (With DOSBox), turn off the typing
support in your computer.
New File
To create a new File in Turbo Pascal (With DOSBox), boot into Turbo Pascal (With
DOSBox). By default a file named Welcome.txt is available on the screen for notify note
when using the software. To start creating a new file for programming, go to File> New
to create a new file.
Open file
If you want to open a file you have made and save it to your computer. Go to File>
Open (or press F3) to enter the open dialog box:
13 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
In the dialog box open, we select the file to open by selecting the file ending in .pas in
the Files file table, then click Open to open.
When we select the file .pas we can see the date and time of file modification, file size
(Byte unit) at the bottom of the file picker (yellow square frame in the picture).
If you want to open the file in other folders, click ...\ to view the parent folder. Click
[Folder Name]\ to open the folder
· Tips:
By default Turbo Pascal only displays the .pas file, if you want to display files other than
.pas, in the Name field, enter *.<File format to display> if you want to show the file
with the specified extension or type *.* if you want to display all file formats.
Also in this field you can enter the path if you want to enter the directory directory
quickly
To quickly open the file, double-click the file to open.
You can use the history list to re-enter text that you've already entered, click the arrow
icon to the right
If you open the file by pressing Replace, you will open the selected file and close the file
you are opening, notice if the unsaved file will have a message asking to save the file
before opening the selected file.
Note: There will be some files of the form <file name (incomplete)>~1.pas. These are
file names that exceed 7 characters. Turbo Pascal cannot display the file name correctly
but still open the file normally.
14 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Save file
Save file on Turbo Pascal
If you want to save the created file, go to File> Save (you can press F2) to save the file
The file save dialog box appears, enter the file name in the Name field and click OK to
save.
Tip: If you want to reuse the file name, click the file name already in the file list table
and edit the file name and save.
To save in another folder, use the directory operation as in the file open dialog box.
If you want to overwrite the file, click the existing file name and save it, there will be a
message that you want to overwrite the existing file, select overwrite to save.
You can use the history list to re-enter text that you've already entered, click the arrow
icon to the right
Note: The file name must be no more than 7 characters (including spaces).
The section below selects the file name that will contain the date and time information
to create the file as shown in the file open dialog box.
If the file has been saved before, when you click the save button, it will save the file
changes, and if you want to save with another name, go to File> Save As ... and save
the same way as above.
Change Dir
If you want to change the default save path, go to File> Change Dir ...
15 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Here we change the default save path by selecting the directory in the Directory tree
(Directory Tree).
You can also enter the path in the Directory Name field
You can use the history list to re-enter text that you've already entered, click the arrow
icon to the right
Click the Chdir button to refresh the directory tree
Press the Revert button to bring back the path you changed last.
After changing click OK to save.
Note: To save as the default setting in subsequent runs, go to Options> Save ....
Turbo Pascal has a way to copy, cut and paste them in Word, but other usage
mechanisms.
· To copy a piece of text, select the original paragraph and click Edit> Copy (or press
Ctrl + Ins).
· To cut a piece of text, select the text to cut and click Edit> Cut (or press Shift +
Del).
· To create a paragraph, select the text you want to cut and click Edit> Paste (or press
Shift + Ins).
16 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Note: If you paste blank, just do the above, if you want to replace the existing text
override, select the text to overwrite and go to Edit> Delete (Or press Ctrl + Del) then
click Copy or Paste at that location.
In addition, Delete button in Edit also deletes existing text, to delete existing text,
go to Edit> Delete (Or press Ctrl + Del)
17 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Go to line number
To find a line, go to Search> Go to line number ... and enter the line number in the
Enter New Line Number box and click OK.
You can use the history list to re-enter text that you've already entered, click the arrow
icon to the right
· To find the error, go to Search> Error Search and enter the error address in the
Error address box and click OK to Search. (You can use the history list to re-enter
text that you've already entered, click the arrow icon to the right).
· Go to last error is command displays the last compile-time error message at the top
of the screen and positions the cursor near where the error occured. No error
message is displayed if the last compilation was successful.
18 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
When programming the Pascal file, to run the file, go to Run> Run (or press F9). If
successful, the program will run.
If you run the hidden program, you can view the output of the program by opening the
Output window.
See the DOS screen status by going to User Scrren.
If the screen is too messy, you can use the Clean / Refresh DOS Scrren tool to clear the
screen before running, so it will be better
NOTE: in the process of compiling or running the program, if there is an error (the
compiler has an error that will not show the above dialog box), an error will be
reported , see section Error in Pascal for details.
Error in Pascal
When programming Pascal When there is a Programming Error or when the program fails,
Turbo Pascal will Report Error As shown below, the error codes and error information are
located below..
19 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
To Know About Pascal Programming Errors Or Error When Starting File,You can see the
following ways: Go to Help> Error Messages and edit the file to delete the above
programming error so that the file can be compiled.
20 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
To run this tool go to Tools> Clean / Refresh DOS Screen (Shift + F3).
21 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Window manage
The Window menu contains commands for manipulating and opening windows. Most of
the windows you open from this menu have all the standard window elements, like
scroll bars, a close box, and zoom icons.
Tile, Cascade, Close All, Refresh Display, Size/Move, Zoom, Next, Previous, Close, List
22 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
· The commands on the Debug menu control all thefeatures of the integrated
23 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
debugger. You can change default settings for these commands in the Options>
Debugger dialog box.
24 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Sample in Pascal
This is an example of pascal programming
25 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Program HelloWorld.Pas
Program HelloWorld;
uses crt;
Begin
Clrscr;
Writeln('Hello World');
Readln;
end
Inside
program Helloworld; : Program Declaration, Helloworld is the name of the Program
Uses Crt; : Library Declaration, Crt Library Name Required
Begin: Begin the command
Clrscr; Clear Screen Commands
Writeln ('Hello World'); : On Screen Display, On Screen Display ('_')
Readln; : stop the screen until the user press enter
End. End the Program
Other Commands
TextBackground (White); screen color change, color name in (_)
TextColor (White); Change screen color, color name in (_)
NOTE: All Commands Must Have; before ending the Or statement before concluding
the program declaration Or library. (Except the Begin command and other commands)
26 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
To turn off Unikey on the Unikey interface and press the end to turn off Unikey
Keyboard shortcut
· Keyboard shortcuts In DOSBox
Shortcuts Description
CTRL-E Kill (close) DOSBox. (Warning : Please Save File Before Before closing
with this Off key, it is not recommended to use this shortcut key)
ALT-ENTER Switch to full-screen (and back). (Windows XP/Vista/7 Only)
ALT-PAUSE Pause emulation.
· Keyboard Shortcut In Turbo Pascal
Key Action
F3 Open The File Pascal
F2 Save The File Pascal
Alt+X Exit Turbo Pascal
ALT-Backspace (<-) Undo Action
SHIFT-DEL Cut
CTRL-INS Copy
SHIFT-INS Paste
CTRL-DEL Delete
CTRL-F9 Run Programs
F8 Step Over
F7 Trace Into
F4 Go to cursor
ALT+F9 Compile Program
F9 Make
Shift+F2 Grep
Shift+F3 Clear/Refresh Scrren DOs
27 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Key
Action
ALT-ENTER
Switch to full-screen (and back).
ALT-PAUSE
Pause emulation.
CTRL-F1
Show the keymapper configuration screen,
CTRL-F4
Update cached information about mounted drives. Useful if you changed
something
on a mounted drive outside of DOSBox
. Also cycles through disk images mounted using IMGMOUNT
CTRL-F5
Save a screenshot (goes to capture folder).
CTRL-ALT-F5
Start/Stop recording of AVI video. NOTE: You may well have some problems
with
this, please see Recording Video for more information.
CTRL-F6
Start/Stop recording sound output to a wave file (goes to capture folder).
CTRL-ALT-F7
Start/Stop recording of OPL commands.(not recommended to use this shortcut
key)
CTRL-ALT-F8
Start/Stop the recording of raw MIDI commands.(not recommended to use this
shortcut key)
CTRL-F7
Decreases frameskip.
CTRL-F8
Increases frameskip.
28 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
CTRL-F10
Capture/Release the mouse (if you need to use the mouse within DOSBox).
CTRL-F11
Decrease DOSBox cycles (slows down the emulation).
CTRL-F12
Increase DOSBox cycles (speeds up the emulation)
Advanced Use
Choose Add or Remove Programs in Control Panel, select the program in the Add or
Remove Programs dialog box and click the Change button.
29 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
The Turbo Pascal (With DOSBox) Installer will open and then click “Yes”button, There
are three important options we can see in the installer.
Click the sections below to see the effects and how to use the above
functions:
· Modify
· Repair
· Uninstall
Modify
Modify is used to add extra features in Turbo Pascal (With DOSBox). If we have already
installed Turbo Pascal (With DOSBox) but forgot to install any features, we can use
modify option we add new features. We do not uninstall and again re-install full Turbo
Pascal (With DOSBox).
First, click Modify we can see already installed features are selected. Now, select what
are the new features need to add or remove in Turbo Pascal (With DOSBox). We can see
the
installation size for selected one in right side in Turbo Pascal (With DOSBox) Installer.
30 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Click Next button. Then click Install to start installing the selected components. We can
see the Installation Progress.
After successful, press Finish to end the process. You can already use the newly added
components.
Repair
Any problem or corrupted any files in Turbo Pascal (With DOSBox) use repair to
resolve problems.
First, open Turbo Pascal (With DOSBox) Installer and click repair options which
look like below screenshot.
31 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Then click Repair to start the repair process. The repair will take some minutes to
complete. If need to cancel repair, click Cancel to stop the repair.
After successful, press Finish to end the process.
Uninstall
We can uninstall Turbo Pascal (With DOSBox) using Turbo Pascal (With DOSBox)
Installer. If no need forTurbo Pascal (With DOSBox) we can uninstall without going
to “Programs and Features” in Control Panel. Open Turbo Pascal (With DOSBox)
Installer and click Remove option.
After click Remove then click Remove to continue to uninstall.
Uninstall will continue after clicking Remove button. Now progress bar will be open
and can see the uninstall percentage.
After successful, press Finish to end the process. You have uninstalled Turbo
Pascal (With DOSBox) successfully, you can reinstall at any time by running the
software's installation file.
In the tab "Configuration" section, click "Edit Normal Mode file" of "Edit Vietnamese
Writing Mode file" to start editing the DOSBox .conf file, depends on the mode you want
32 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
to edit. Note that this may change the way DOSBox works. For more information on
how to set up DOSBox, click "DOSBox Configuration Help" or "DOSBox Manual" in tab
Help to learn more.
More Help
You can find other software tutorials in the Help Menu in the Turbo Pascal Menu
33 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.
Turbo Pascal (With DOSBox) User Manual
Other Infomantion
· If you have any suggestions for any bug fixes please report web site error at
sourceforge.net here: web site error
· You can discuss the software here on page SF.net
· Website: https://turbopascal-wdb.sourceforge.io
34 / 34
Copyright © 2017-2020 by Lưu Nguyễn Thiện Hậu. All Rights Reserved.