Page 1 of 1
Posted: Mon Mar 09, 2009 5:29 pm
Hello, is there anything that I could do to keep the Basic program running, after issuing the LLIST command from with in the program itself;
Now, (example) I want to RUN this program, but I would never hear the PING?
Is there anything maybe to POKE for in order to keep the program running after the LLIST-ing?
Posted: Mon Mar 09, 2009 7:47 pm
I remember there was a trick which was doable once upon a time.
Basically it was something like that:
As a first line of the program, do something like:
0 ON V GOTO 1,30
1 REM HERE IS THE BEGINNING OF THE PROGRAM
19 V=1:A=DEEK(#1B):DOKE #1B,"adress of CONT"
30 DOKE #1B,A ' RESTORE OLD ADRESS
The idea is that after the LLIST, the BASIC would display "Ready", but since the ready is now redirected to call CONT, it would start again on the line 0, with the existing variables still working (here V=1), so it would jump to the line you indicate in the ON GOTO (here 30).
Then of course in the end you have to restore a valid adress for Ready, else you are not going to quit the program (stored in A).
I don't remember the details, it's all from memory.
Posted: Tue Mar 10, 2009 12:23 am
Very neat if it works, referring to AUG the address of CONT is #C96E (Oric-1) and #C9A0(Atmos)