Improved BASIC editing on X16
Re: Improved BASIC editing on X16
You can try to zero out zero page addresses as well, like F 0022 0050 00 in the monitor
Re: Improved BASIC editing on X16
I tried clearing the zero page. (on r43 emulator)
If I use the MONitor to clear out F 0022 0022 00, the system freezes.
So then I tried just clearing F 0023 to 0050 00. That works and the system doesn't freeze, but doing this then breaks the BASIC commands (I can't do RUN or LIST, running those commands then just puts me back into the monitor).
I haven't looked up on what all is in the zero page these days.
That's neat if you're able to "learn" the tokens (build a look up table of sorts?).
If I use the MONitor to clear out F 0022 0022 00, the system freezes.
So then I tried just clearing F 0023 to 0050 00. That works and the system doesn't freeze, but doing this then breaks the BASIC commands (I can't do RUN or LIST, running those commands then just puts me back into the monitor).
I haven't looked up on what all is in the zero page these days.
That's neat if you're able to "learn" the tokens (build a look up table of sorts?).
Re: Improved BASIC editing on X16
I forgot that the monitor uses that zero page range itself.
You need to do this from BASIC instead
FOR I=$22 TO $50:POKE I,0: NEXT I
You need to do this from BASIC instead
FOR I=$22 TO $50:POKE I,0: NEXT I
Re: Improved BASIC editing on X16
No luck with the FOR loop.
Order was:
LOAD BASLOAD (don't run it yet)
Apply MON .F 0400 07FF 00
Apply FOR I=$22 TO $50:POKE I,0: NEXT I
RUN BASLOAD, input TEST.TXT
can LIST program, tried SAVE to TEST.BAS (result is still a 50K file)
on RUN, out of memory on line 2 (INPUT A$)
Close and load again r43 emu.
Loaded the TEST.BAS result.
Can LIST program, looks ok.
on RUN, out of memory on line 2 (INPUT A$)
(I tried another variation of applying the FOR loop after specifying input of TEST.TXT to BASLOAD)
This is with the public BASLOAD-0.2.0.PRG still.
Order was:
LOAD BASLOAD (don't run it yet)
Apply MON .F 0400 07FF 00
Apply FOR I=$22 TO $50:POKE I,0: NEXT I
RUN BASLOAD, input TEST.TXT
can LIST program, tried SAVE to TEST.BAS (result is still a 50K file)
on RUN, out of memory on line 2 (INPUT A$)
Close and load again r43 emu.
Loaded the TEST.BAS result.
Can LIST program, looks ok.
on RUN, out of memory on line 2 (INPUT A$)
(I tried another variation of applying the FOR loop after specifying input of TEST.TXT to BASLOAD)
This is with the public BASLOAD-0.2.0.PRG still.