Skip to playerSkip to main content
  • 2 days ago
Transcript
00:00hello we installed DOSBox X from the chaotic AUR you're supposed to find the
00:08video in the description we still didn't try to use it so I thought of doing it
00:16together the piece of software that I thought of using with DOSBox X is
00:25Turbo Pascal it has a version for Windows though but the old Windows
00:35versions probably something like 3.1 we may try that one I guess it needs Windows
00:463.1 installed first we may need to install it on DOSBox
00:52let's download this one I will tell you about some of the differences between
01:01DOSBox X and the other variants of DOSBox I made this directory since I was prompted
01:14to by DOSBox X in the first run it asks for a directory where it will store its
01:21files and whatnot so I have chosen it under my home directory and call it the
01:27directory DOSBox X I will save the file that's gonna be downloaded there the
01:36installation file for Turbo Pascal 7.01 and it is downloaded as you can see
01:45let's extract it like this it's in the same directory close like this
02:06let's start DOSBox X like this
02:13okay we mount under C the path which in my case is like this
02:33and then we go there by typing C colon maybe we need to clear the screen by
02:45typing CLS like this and then we change directory into the one that was just
02:54created after the first created after the extraction of the files like this
02:59DIR all right IMG mount before I continue I'm a press I'm gonna go ahead and press
03:12insert like this and change the behavior of the typing disk a disk and then disk 2
03:24we change it to disk 2 we change it to disk 2 if I didn't press insert there will be some I will
03:33need to type everything after 2 because it's gonna replace it disk 3 here and then disk 4 I press home
03:49home and end to go to the beginning and the end of the command dash T floppy like this okay CLS and then we go to A like this
04:06DIR we have install we're gonna type it it's gonna install for us like this tab works sometimes try it
04:16here press enter the source drive to use it's A install turbo Pascal on a hard drive enter all these directories I have nothing to change and then we select start installation like this
04:35here if you're not using DOS box you press control and F4 on Windows and Linux but on
04:49Mac it becomes option and F4 it's in case you aren't using DOS box X in the case of DOS box X there is a combination of
05:00keys which I have keys which I don't know one of them is the host key I still didn't check what it is I will simply go with these menus
05:09here we select swap disk
05:12and enter
05:15this should be done every time we wanna change between the disks that we have since we have four of them here they may be less or more
05:25press control F4 again or option of F4 on Mac or do the same if it is DOS box X swap disk and enter
05:45control F4 if not DOS box X option F4 for Mac and here like this and enter
06:00ok these instructions can be used in order to have the executables in our path by adding them to config.sys
06:14and autoexec.bat
06:18I'm gonna go ahead and print the screen
06:21yes
06:35ok so you needed it
06:47in case I needed it
06:59escape
07:02after the installation we go to dp directory which is newly created after
07:07the extraction and we should have ls works dir the one for dos I don't know if
07:23there is ls there or not we go to bin and start the editor which is tpx like
07:34this
07:41this is to prevent it from closing immediately after it is run and this is
07:48this is to prevent it from closing immediately after it is run and
07:55then we compile it like this
07:59yes be careful with the syntax for example
08:06usually what you want to print
08:08should be in single quotation marks the program name if you use for example
08:15here a dash or an iphone it will not work
08:19let's run the application that we just made it works printed as you can see here enter
08:26I will give a better example of a better application not just the simple printing app
08:33I will give a better example of a better application
08:40not just the simple printing app
08:48not just the simple printing app
08:55let's say we want to take the user input which is a variable that I declared as user input
09:10we read it as user input we read it means that we take it as input for the application and we check if it is even or odd with the built-in function of pascal odd
09:17it returns true or false so we can check it and we can check it as true or false so we can check it and print the function of pascal odd
09:24so we can check it as user input and we can check it as user input which is a variable that I declared as user input
09:28we read it means that we take it as input for the application and we check if it is even or odd with the built-in function of pascal odd
09:38it returns true or false so we can check it and print the result let's try
09:53I compiled it and it is successful the compilation let's run let's say 123 it is odd
10:06let's improve here by saying give a number this compile here for if and else the first if doesn't need a semicolon at the end and it will spit out an error in case you put it there
10:35put it there you put a semicolon there let me show you yes it complained so we need to remove it if we compile it compile successfully let's run the app like this give a number let's say 1200 like this it's even
11:03so that was how you set up turbo pascal on dos box tell me in case you want more videos like this we will have more though please don't forget to subscribe like share and comment and peace
11:19and peace
Be the first to comment
Add your comment

Recommended