• Please review our updated Terms and Rules here

Can Turbo Pascal 3 compile to other than 100h ?

ChickenMan

Experienced Member
Joined
Apr 11, 2011
Messages
91
Location
Victoria, Australia
There is available a CP/M version for a TRS-80 Model 1 (and my System 80 clone) but because of its roms, low memory starts at 4200h and the programs load at 4300h. So off the shelf CP/M programs dont work. I have the Turbo Pascal source code for the game Ladder but cant find how, if possible, to encode to 4300h address. Is it possible or am I dreaming ?
 
Page 143 of the manual takes you through it, including how to compile to a start address and set an objective end address.


Regards
David

p.s. It's page "158" if you use the page number slider below, and not the printed page numbers.
 
Page 143 of the manual takes you through it, including how to compile to a start address and set an objective end address.
Yea, that's not going to do it though.

Turbo Pascal programs are the large, Turbo runtime with your programs tacked on to the end. Setting the START address sets the beginning of the code AFTER the runtime, but the runtime stays put at 0x0100.

One of the ways Turbo is fast is by eliminating a LINK step. The code is just compiled to absolute addresses within the runtime, and the runtime it copied wholesale.
 
Thanks David, but I dont think thats it. The manual quotes the Start Address as

The Start address specifies the address (in hexadecimal> of the first
byte of the code. This is normally the end address of the Pascal
library plus one.


Not having TP on my System 80, if I run it on a Microbee, I get

1705271697567.png

and even the end address is wrong as I should be able to set it to FFFF for the Model 1 or System 80.

Alan
 
The ladder has mazes comprising of 79 columns and 20 rows. How is this going to work on a TRS80 with 64 columns and 16 rows?
Just make some new mazes. But if you can't get the startup screen to show, it's not worth looking further.
 
Back
Top