• Please review our updated Terms and Rules here

Blitz Compiler for PET

milasoft

Member
Joined
Feb 1, 2019
Messages
27
Location
Canada
I've taken a look at Blitz! the compiler for the C64. It's actually a mix of Basic and Machine Language. It's 100% possible to port this to the PET. It would involve changing the Basic pointer to $0401 and checking zero page registers in the ML code, etc. The disk routines might work on a dual Commodore drive as they rely upon PRINT# to send to the data stream.

Would anyone use it though ?

I'll attach the files as Basic and ML for anyone interested in looking at the C64 version. The code however subtracts from the top of basic pointer to create the ML routine variables, which is odd and amazing at the same time. Amazing because they'd have to know where exactly in memory the code would be before compiling Blitz into P-Code and odd because why not just specify the actual memory address to call it from.
 

Attachments

  • blitzdisk.zip
    15 KB · Views: 0
Thanks for the reply Robert. I looked at the code, and while it's easy enough to port the Basic over to PET, I'm finding hurdles in the machine code. Mainly the runtime code that gets embedded into the final product. For now the project will wait.. but it's a great time to say thank you so much for your purchase of Petopia demo :)
 
Back
Top