Hisoft pascal plus 3 compiler lazarus / 21-General ---------------------------------------------------------------------- alanwestlake · 2025-04-07 12:48 Hi, Please forgive me if I'm slightly off topic. Been using freepascal for a while but decided to find Hisoft Pascal for the ZX spectrum plus 3, my first ever pascal compiler! It's all working (on an emulator) but I can't remember how to create a standalone object file. I've looked everywhere but there is no plus 3 manual on the internet. I've got a plus 2 manual but no cigar. That mentions using 'T' for translate. But on the plus 3 compiler 'T' is for trash. Just wondering if anyone remembers how to do this, or knows of a plus 3 manual. Many thanks in advance. ---------------------------------------------------------------------- MarkMLl · 2025-04-07 14:20 I'm sure we can claim that this is on topic because you're looking at the compatibility between the two compilers :-) I didn't use that specific compiler, although it might possibly ring a bell for somebody else. I /did/ use the Modula-2 compiler that was distributed by Hisoft, but my recollection is that that was driven from the commandline rather than having an IDE. Now, the M2 was actually the FTL compiler written by (IIRC) somebody in Australia (Hisoft was fairly good, but not really up to writing a compiler from scratch). Which suggests that you could usefully research who originated the compiler+IDE that you're running, and look for a manual either using its original name or by looking for who distributed it in the USA for the Timex computer which I think was a licensed  Spectrum clone. MarkMLl ---------------------------------------------------------------------- alanwestlake · 2025-04-07 20:55 Hi, Many thanks for the suggestions. I used to use the FTL Modula 2 compiler on the Atari It was a lot of fun. Alan ---------------------------------------------------------------------- Zoran · 2025-04-08 18:26 Try asking in Spectrum computing forum. By searching the term "hisoft", I got many results, some quite recent -- from 2025! So it seems you might find active users there who are still interested in this product. Indeed, the only Hisoft Pascal manual I could find online has Spectrum 48K, 128 & Spectrum Plus 2 printed on the front page. If you are sure that another different manual for +3 model existed, try asking there... ---------------------------------------------------------------------- alanwestlake · 2025-04-09 20:09 I'll try there. Many thanks for checking it out. ---------------------------------------------------------------------- munair · 2025-04-10 07:07 Since this is considered on topic, I'll provide the answer generated by Grok: In the editor, after writing your program, invoke the compiler by typing RUN and pressing ENTER. The compiler processes the code and generates machine code in memory. By default, this code is linked with a small runtime environment that handles I/O and basic operations, making it executable immediately within HiSoft Pascal. Set Compiler Options for Standalone Output: To make the program standalone, you need to ensure it doesn’t rely on the HiSoft Pascal editor or loader being present. HiSoft Pascal allows some control over this: - Disable Debugging Checks: Turn off options like integer overflow or array bounds checking (if enabled) to reduce dependencies and size. Use the OPTIONS directive if available in your version (e.g., OPTIONS NOCHECK) before the PROGRAM line. - Specify Start Address: The compiled code typically starts at a fixed address (often around 32768 or higher, above the HiSoft Pascal system). You can sometimes set this explicitly with a directive like ORG (e.g., ORG 32768), though this depends on the version. Save the Compiled Machine Code: After compilation, the machine code resides in memory. To save it as a standalone object file: - Use the SAVE command with a memory range. For example, if your compiled code starts at 32768 and is 1000 bytes long, you’d enter something like: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i SAVE "MYPROG" CODE 32768, 1000 Test the Standalone File: Load the saved file back into a fresh Spectrum (without HiSoft Pascal loaded) using: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i LOAD "" CODEThen start it with: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i RANDOMIZE USR 32768(Adjust the address if you used a different ORG.) ---------------------------------------------------------------------- d2010 · 2025-04-10 13:27 Quote from: alanwestlake on April 07, 2025, 02:48:31 pmHi, Please forgive me if I'm slightly off topic. Been using freepascal for a while but decided to find Hisoft Pascal for the ZX spectrum plus 3, my first ever pascal compiler! Already I have a Delphi-Emulator. How can share together Delphi- Emulator-of"Z80"? Okai you have "PROGRAM PASCAL .z80" from "HiSoftCompiler", but main question =  How to integrate "program.pascal.z80" to inside "Lazarus.Program.Exe?" You import and export many sources.pascal.hisoft inside your "Delphi- Emulator-for "z80?" How to develop a Team for HiSoft-Pascal? https://youtu.be/pmGeBHU--fQ Here List-of-Basic-codes with background images? https://youtu.be/s2hD-TG0m8U?t=21 Can you transform, Delphi-Emulator-for "z80 to-inside "Lazarus4.4.verr"? Thank you, Thabnk you, click here Thank you got-click here. ---------------------------------------------------------------------- alanwestlake · 2025-04-11 09:31 All, I never expected such great answers. Thank you so much for taking the time. I'd never heard of GROK but that answer looks awesome. This is a great forum. I'll try that solution from Munair this evening. I'll let you know if it works. Thanks Alan ---------------------------------------------------------------------- Zoran · 2025-04-11 17:05 By the way, did you know that FPC from main branch can compile for Spectrum? See: https://wiki.freepascal.org/Z80. I haven't tried it myself though. ---------------------------------------------------------------------- alanwestlake · 2025-04-13 18:24 I'll give that a try.