[fpc-pascal] Textmode IDE splitscreen?
James Richters
james at productionautomation.net
Tue Jul 26 00:51:37 CEST 2016
Thanks for the info. I will give it a try. I was doing some DOS function calls, inline assembly, and direct hardware access with PORT[ ] commands. I just went though and commented out everything that wouldn’t work so it would compile and now I’m finding ways to make those things work. I have the bulk of it working great, still a few minor details to work out, but it’s a LOT less work than a complete rewrite!
From: fpc-pascal-bounces at lists.freepascal.org [mailto:fpc-pascal-bounces at lists.freepascal.org] On Behalf Of Sven Barth
Sent: Monday, July 25, 2016 6:25 PM
To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
Subject: Re: [fpc-pascal] Textmode IDE splitscreen?
Am 25.07.2016 22:52 schrieb "James Richters" <james at productionautomation.net <mailto:james at productionautomation.net> >:
> I've tried Lazarus, for some reason I can't even get my program to compile
> with Lazarus, I get pages of errors. Maybe I just don't know how to get
> Lazarus into Turbo Pascal Compatible mode..
In your project's settings there is somewhere among the compiler options (sorry, I don't have it on front of me right now) a combobox that allows you to select the default mode. This is normally "ObjFPC", but you want to switch that to "TP".
Alternatively you can add "{$mode tp}" at the top of each of your units.
Please keep in mind though that quite some DOS tricks won't work when compiled on Windows (due to virtual memory, different API, etc.). Though as long as your program does not do any strange hardware accesses you should be fine.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160725/587bb8be/attachment.html>
More information about the fpc-pascal
mailing list