Changes

Jump to: navigation, search

Hisoft Devpac

3 bytes added, 10:50, 7 August 2012
Exists as a new version for CP/M called [[Hisoft Devpac 80]].
 
== Source Code File Format ==
 
The source code files are stored in a rather unconventional file format: Unlike plain ASCII files, they do have a 128-byte file header, with the filetype byte being set to 08h (making it neither a neither BAS, BIN, nor ASCII file) (in BASIC one gets an error message when trying to use OPENIN, despite of that error message the file ''is'' opened and one ''can'' read from it; when continuing with GOTO <nextline>).
 
The actual file body contains more unconventional things:
* Each line starts by a two-byte (16bit) line number. The line number is used only to "ease" navigation inside of the GENA editor, otherwise it isn't needed.
* Each line is terminated by a 0Dh byte (exception: some lines are terminated by a 1Ch byte). For normal .txt files these should be replaced by 0Dh,0Ah (for use with locomotive basic, cp/m, msdos, windows, etc.).
 
Note: The GENA assembler includes a function for converting files to plain ASCII: Type "G,,filename.ext" to get the original source, then type "Q1,9999,target.txt" to save lines 1-9999 in ascii format.
== Label ==
</gallery>
 
== Source Code File Format ==
 
The source code files are stored in a rather unconventional file format: Unlike plain ASCII files, they do have a 128-byte file header, with the filetype byte being set to 08h (making it neither a neither BAS, BIN, nor ASCII file) (in BASIC one gets an error message when trying to use OPENIN, despite of that error message the file ''is'' opened and one ''can'' read from it; when continuing with GOTO <nextline>). The actual file body contains more unconventional things:
* Each line starts by a two-byte (16bit) line number. The line number is used only to "ease" navigation inside of the GENA editor, otherwise it isn't needed.
* Each line is terminated by a 0Dh byte (exception: some lines are terminated by a 1Ch byte). For normal .txt files these should be replaced by 0Dh,0Ah (for use with locomotive basic, cp/m, msdos, windows, etc.)
Note: The GENA assembler includes a function for converting files to plain ASCII: Type "G,,filename.ext" to get the original source, then type "Q1,9999,target.txt" to save lines 1-9999 in ascii format.
== Manual ==
20,492
edits