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

BasicShell: no run with linenumber #60

Closed viteisele closed 1 year ago

viteisele commented 1 year ago

When with Basicrun a program should be started at a specific line, there is an error:

image

It would be nice, when a run with linenumber would be possible as in the C64

EgonOlsen71 commented 1 year ago

Might work now. It was a bit of a hack to support this, because the interpreter actually doesn't really support starting the program at any line but at the start. I hope this has to side effects...

EgonOlsen71 commented 1 year ago

Note: When giving it a non-existing line, it won't error out but simply start at the first line instead.

viteisele commented 1 year ago

Maybe the hack doesn't work: image

And the help text should be updated to "run [number]"

EgonOlsen71 commented 1 year ago

I see. I guess the hack is actually fine, but the behaviour of RUN in the interpreter itself wasn't quite what one would expect.

Please give it another try.

viteisele commented 1 year ago

Much better now :-) Now it works as described When you have time you should improve the text in the helpwindow