PDA

View Full Version : Turbo Pascal 3: exporting .pas as .com



demented_yam
14-03-2005, 11:16 PM
i am making a game (for those of you who like rogue, it's a emulator of that) in turbo pascal 3

i would like to show some interested people from another forum what i have so far, and i'm pretty sure that they don't have pascal compilers, nor will i require them to download one before they try the game.

i remember a year or so ago, one of my freinds showed me a program of his, and when i went to see how he had done a part of it, i found that it was not a .pas file, but rather a .com file.

to put it simply: how do i do that?

cairnswm
15-03-2005, 04:54 AM
Have a look here:

http://community.borland.com/article/0,1410,20792,00.html

Lists this errata on making com files:


Page 365: Compile/Run-Time/I/O Errors
-------------------------------------
First question

A: You can do two things: break your code into smaller segments
and use the $1 compiler directive or compile to a .COM or .CMD
file.

should be:

A: You can do two things: break your code into smaller segments
and use the $I compiler directive or compile to a .COM or .CMD
file.