A usable first version of the Tiny Pascal compiler that was first published in the September-November 1978 issues of BYTE magazine is now available for the X16.
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
You can download it at this discussion post point here, along with some additional, though brief, instructions on using it.
viewtopic.php?p=30441#p30441
Some of you will be aware that there has been a wee discussion on this topic over recent weeks.
It is my intention to develop this compiler further so that it supports most, if not all, of the X16 capabilities accessible via BASIC.
The Tiny Pascal compiler is written in BASIC and generates an object code file that is designed to run on an emulated virtual machine - it generates a simple pCode.
I also have a pCode machine emulator and simple user interface environment for it - it too is written in BASIC.
As soon as BLITZ is able to correctly support reading and writing sequential file operations as well as BLOAD and BSAVE I will provide BLITZ versions to significantly speed up the compilation process and the pCode execution.
I do intent to have the compiler generate native 65C02 machine code but that is someway down the road.
For now none of the X16-specific features are supported. I want to get some more testing done on where things are right now - it only supports signed 16 bit integer values and arrays. I plan to add strings, 32 bit integers and float support.
Also right now it doesn't support peek & poke functionality, but I am working on addressing that as my #1 priority.
I heartily recommend you tracking down those editions of the BYTE magazine I referenced above and reading the articles on Pascal and Tiny Pascal - it's good stuff!
Enjoy this first version, have a play and let me know by way of comments below if you run in to any problems or have feature requests.
Cheers!
Martin