Login
Back to forumSee the full topicGo to last reply

Posted By

MMS
on 2014-07-24
19:49:56
 Re: PLUS-Comp Found!

first part of the article. Sorry for the lot of errors and type mistakes, this was the best I could do now after 12 hours of hard work in office. Please do not be too critical on my bad English, today I dried out happy


The preconditions of the efficient program development are those softwares supports that work to be done. The PLUS-comp is a BASIC compiler that is compatible from "down" with the 3.5 version of BASIC. This program is the youngest version of the B-G-S compiler family.
Compiling of the BASIC programs can be done on Plus4 or C64 machines.
On both machines you can generate a machine code program that runs on a C16 machine. These C16 programs should not contain GRAPHIC command, as the P coded program memory requirement is 7.25KB even if the program contains only 1 BASIC line (this is the compiler code).

You should use the floppy disc, as a tool of compiling. The available 4 compiling modes may fulfill the
requirements of developers and home users too.

The hardware requirements are:
-1 Plus4 of C64 machine
-1 or 2 floppy disc drive (VC-1541 or compatible)
-1 MPS801 printer or compatible, in case there is a need to see the error codes on paper

In case during compiling there is an error, the line number and the error
codes are printed on the scren and on the printer too.

The error messages are in Hungarian language.
-SYNTAX ERROR - the same happy
-TYPE MISMATCH - incorrect character type (?)
-UNDEF'D STATEMENT-number is not defined
-BAD SUBSCRIPT-bad description
-OVERFLOW- data overflow

The compiler uses integer arithmetic. The real numbers are stored as integer, if the conversion is possible. In case other real constants the P code stores the numbers in floating point mode, so the
commands can be done faster.
If the FOR..NEXT uses Integer than the memory requirement of the cycle decreases
only to 9 bytes. As the variables has direct access and the commands are directly operated, the perations goes directly to the command's memory address.

The compiling can be executed on one or two disc drives. If you have only one drive, then only the 1st mode is available. With two drives you may even do automaitic batch compiling and you may use the advantage of the overlay technic (2, 3, 4 modes)



Back to top


Copyright © Plus/4 World Team, 2001-2024