Prog8 Documentation Release 7.0 Irmen de Jong Sep 28, 2021 Contents of this manual: 1 What is Prog8? 3 2 Language features 5 3 Code example 7 4 Getting the compiler 9 5 Required additional tools 11 5.1 Writing and building a program..................................... 12 5.2 Programming in Prog8.......................................... 14 5.3 Syntax Reference............................................. 27 5.4 Compiler library modules........................................ 41 5.5 Target system specification........................................ 45 5.6 Technical details............................................. 47 5.7 TODO.................................................. 49 6 Index 51 Index 53 i ii Prog8 Documentation, Release 7.0 Contents of this manual: 1 Prog8 Documentation, Release 7.0 2 Contents of this manual: CHAPTER 1 What is Prog8? This is a compiled programming language targeting the 8-bit 6502/ 6510/ 65c02 microprocessors. This CPU is from the late 1970’s and early 1980’s and was used in many home computers from that era, such as the Commodore-64. The language aims to provide many conveniences over raw assembly code (even when using a macro assembler), while still being low level enough to create high performance programs. Prog8 is copyright © Irmen de Jong (
[email protected]| http://www.razorvine.net). The project is on github: https://github.com/irmen/prog8.git This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html 3 Prog8 Documentation, Release 7.0 4 Chapter 1. What is Prog8? CHAPTER 2 Language features • It is a cross-compiler running on modern machines (Linux, MacOS, Windows, . ) It generates a machine code program runnable on actual 8-bit 6502 hardware.