Turbo Pascal is an old software development system including a compiler and an integrated development environment for the Pascal programming language running on CP/M, CP/M-86, and DOS.
Questions tagged [turbo-pascal]
115 questions
2
votes
2 answers
Turbo Pascal 7 Unit files - decompile/list contents?
I need to program a device which takes instructions using compiled Turbo Pascal 7 scripts, but the documentation on the custom units included with the device are not sufficient to allow me to understand what's going on when I write the programs,…

Paul
- 10,381
- 13
- 48
- 86
2
votes
2 answers
C# Access Turbo Pascal .DTA files from .Net
My problem. I have a legacy Turbo Pascal program, still running on MS DOS. The original source is lost, and I need to manipulate the information found inside the .DTA files.
I would really like to access this information from .Net, read and update.…

Morne Rossouw
- 21
- 2
1
vote
2 answers
Get variables with PHP in a Turbo Pascal way
In Turbo Pascal we have the read(); function. Is there a function to get variables, sent to any script on PHP?

Taras Lukavyi
- 1,339
- 2
- 14
- 29
1
vote
0 answers
My Pascal Program wont read the data from stocks.txt. How do I have it read the data from data.txt
I am currently learning Pascal. Using Pascal XE for IDE. This program I wrote runs but wouldn't read the data from stocks.txt
The Current output when the program is reading a .txt file with no data
The Current output when the program is reading a…

Pickles91
- 21
- 6
1
vote
3 answers
Are there any useful tools to analyse an existing Borland Pascal 7.0 App
We have a body of legacy Apps written in Borland Pascal 7.0 of 16bit, real mode Fame.
Do you know any good tools useful for analyzing such software, such as call graphs, cross-references, IDEs?

Ber
- 40,356
- 16
- 72
- 88
1
vote
1 answer
I keep getting the message of "operand type doesn't match operator"
Here are the rules of a simple game:
2 players a and b hide their right hands behind their backs. Each chooses to hold a certain number of fingers from 0 to 5 always behind their backs. Both players show their hands at the same time. If the sum of…

Malak El Meziani
- 21
- 1
1
vote
1 answer
Disassembly of old Turbo Pascal (V3) code - how to create data segment in IDA
I would like to disassemble the final version of a self-written Turbo Pascal V3 program, i.e. a simple .COM file, and to that effect I've dug out my old (AD 2004) registered copy of IDA Pro (V4.7.0.831). Not having used it for more than 10 years,…

prino
- 39
- 3
1
vote
0 answers
Radix Sort Convert Ascending to Descending (Pascal)
*edit
I have radix sort procedure, and i got this code on another site referension. But this radix sort only for ascending not for descending.
Can you guys help me how to make it to descending
Program SortStuff;
Uses Crt, Dos;
Type
AType =…

AnonymousUID
- 47
- 6
1
vote
1 answer
Programming "rset" of QB 4.5 by assembly in Turbo Pascal
I'm programming a procedure in Turbo Pascal with assembly to make a close job of "rset" statement in QB 4.5. "Rset" will justify a string to the last bytes in the variable by mean that the string will be saved in the variable at the end of it…

Ahmed Crow
- 101
- 4
1
vote
0 answers
Pascal problem using dispose and later asigning NILL to that pointer. This problem only occurs when I use a for x in z
procedure freeMem (var v: tTabla; i: integer);
var
p : tPEntero;
begin
for p in v do
if p^ < i then
begin
dispose(p);
p := NIL;
end;
writeln('Memory disposed.');
end;
I have an array of 4 pointers that point to…

randomstudent2332
- 11
- 3
1
vote
1 answer
Popup window in Turbo Pascal 7
In Turbo Pascal 7 for DOS you can use the Crt unit to define a window. If you define a second window on top of the first one, like a popup, I don’t see a way to get rid of the second one except for redrawing the first one on top again.
Is there a…

Keith
- 230
- 1
- 4
- 13
1
vote
1 answer
How do I write an exponential function (e^x)?
I want to be able to pass integer values to a function - e^x and return the result. Based on reccurence relation of e^x. Can someone help me with this?
Thanks in advance.

spammik
- 163
- 7
1
vote
1 answer
C++ read user input without pressing return (Mac OS X), same as readkey in Turbo Pascal
I have seen many posts about this, but none of them answer the question, they give examples that do not work, all you get is more error messages, or just sent off at other tangents. ncurses is continually mentioned yet none of the examples I have…

CpƆlCuƆsCpƆlCuƆsƆ
- 13
- 2
1
vote
1 answer
Pascal: Why it has "dfsf" in output?
we are doing pascal in school and task is to get all words with only latin chars which have descendingly alphabetical order in those words.
So I input "sba dcb onml dfsf cba kl2 joh;" and programm has as output "sba dcb onml dfsf cba" which is…

Aura
- 11
- 4
1
vote
1 answer
What are WinTypes, WinProcs and SW_NORMAL?
In the program below, whare are WinTypes, WinProcs and what is the purpose of SW_NORMAL?
program ex;
uses Wincrt,WinTypes, WinProcs;
var
ch:string;
procedure exe (che:string);
begin
writeln('ecrire ch');
readln(che);
if ch ='oui' then
…
user5964692