Groups | Search | Server Info | Login | Register
Groups > comp.lang.pascal.borland > #182
| From | Brian <usenetposting@meadows.pair.com> |
|---|---|
| Newsgroups | comp.lang.pascal.borland |
| Subject | Re: Help needed to run Pascal program |
| Date | 2015-07-31 05:02 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <mpfdgo$veo$1@dont-email.me> (permalink) |
| References | <c2d29b34-971c-43fd-8d1b-d5a7ed12af52@googlegroups.com> <6834a653-3b57-46c8-969c-807e81230dcf@googlegroups.com> |
On Sat, 25 Jul 2015 14:58:26 -0700 (PDT), dik <quagga5@fastmail.fm> wrote: It's kind of you to help him out - but I still maintain that if someone is using that code as part of teaching the OP how to write Pascal, then he needs a new teacher. Unless the aim of the exercise is to get the OP to tidy the program up, of course... Brian. > the main problem appears to be that the file STDMove2.p > found on the internet is not end-of-line compatible with > turbo pascal - which requires the carriage-return > line-feed pair used in DOS. > > one way to fix this is to load STDMove2.p into WORDPAD and > save it as a DOS text file. in fact, i wrote a small > filter in turbo pascal that corrected line endings and > converted tabs to 3 spaces instead of the usual 8. i named > the result STDMOVE2.PAS > > although the program has a long USES line, in fact it > depends on none of these units to compile. i deleted the > USES line. > > the program writes results to the screen and echoes them > to a log file. i added an 'assign' statement to name that > log STDMOVE2.OUT > > if you type and run in a dosbox: > > TPC STDMOVE2.PAS > > the resulting executable can be run by typing > > STDMOVE2.EXE > > if you want to modify the source then perhaps try the IDE: > > TURBO STDMOVE2.PAS > > or just modify STDMOVE2.PAN in something like NOTEPAD > being careful that whatever editor is used ends lines in a > DOS-like manner. > > turbo pascal 5.5 is a wonderful program to take on > problems like the one experimented with here. in the GUI > intense world that exploded after TP5's day - one forgets > how pleasant and effective it is to tackle something > profound with just a tiny first-class command line > compiler that writes so smoothly to the console and disk. > > good luck - richard > > you can download some results of what i did here: > > http://quagga5.fastmail.fm/STDMOVE.ZIP > > which contains: > > STDMOVE2.PAS - slightly modified and still messy source > STDMOVE2.EXE - compiled executable > TPC.EXE - Turbo Pascal Compiler 5.5 > TURBO.EXE - the IDE > TURBO.TPL - the run-time library -- This message has been sent from an invalid address Replace 'Usenetposting' with my name to reply by e-mail.
Back to comp.lang.pascal.borland | Previous | Next — Previous in thread | Find similar
Help needed to run Pascal program jameshum.humphreys@gmail.com - 2015-07-20 11:44 -0700
Re: Help needed to run Pascal program Brian <usenetposting@meadows.pair.com> - 2015-07-21 03:48 -0400
Re: Help needed to run Pascal program dik <quagga5@fastmail.fm> - 2015-07-25 14:58 -0700
Re: Help needed to run Pascal program Brian <usenetposting@meadows.pair.com> - 2015-07-31 05:02 -0400
csiph-web