EgonOlsen71 / basicv2

A Commodore (CBM) BASIC V2 interpreter/compiler written in Java
https://egonolsen71.github.io/basicv2/
The Unlicense
84 stars 15 forks source link

Loading PRG files works only with compiler #57

Closed viteisele closed 11 months ago

viteisele commented 1 year ago

The compiler is able to work with PRG files, but console and basicshell have problems:

console: the program is loaded, but there is a syntax error shown when starting it basicshell: there is a READY message when loading it, but there is no line shown with LIST.

PRG files have two advantages:

Therefore it were good when console and basicshell could load PRG files. Perhaps you can reuse code written for the compiler.

EgonOlsen71 commented 1 year ago

Makes sense, I guess. I never thought about this use case, but I'll look into it...

EgonOlsen71 commented 1 year ago

Please give it a try now.

viteisele commented 1 year ago

Good work :-) I saw one little issue with PI:

Inside a string the character for PI is converted to chr$(255) by Commodore Basic. In Commodore Basic chr$(126) and chr$(255) are the same character, but no for console support.

EgonOlsen71 commented 1 year ago

This whole PI thing is a disaster. Who on earth had the idea to put this into Commodore BASIC? There's zero need for it and all it does is causing trouble and extra code even in the BASIC interpreter of the actual C64. I'll see, if I can improve this...

EgonOlsen71 commented 1 year ago

Please try again...

viteisele commented 11 months ago

PI is now also working with PRG files :-)