A BASIC program that was deleted with NEW or after a reset can be restored on Commodore computers as long as no new programs are entered or loaded (or the computer is powered off). For the C64, the following procedure has to be applied:


What are the respective commands for a C128 in C128 mode?

I know that the pointer to the BASIC text is at $2D/2E instead of $2C/2D and that BASIC start is at $1C00 if graphics are not used. But I think the Rechain Lines Routine (address $A533/42291 which is called by SYS) might be different.

1 Answer 1


Florian Müller's Vom C64 zum C128: Tips & Tricks (available at https://www.retrozone.ch/c128/download.php) gives this command in section 3.7.2:

POKE PEEK(45)+256*PEEK(46),1:DELETE 1
  • 2
    Works like a charm, thanks for the solution and the excellent reference given. One addition: if the BASIC program before the reset was at 0x4001 due to use of graphics, then entering the commands GRAPHIC1:GRAPHIC0 before the above line is necessary to adjust all pointers to a BASIC start at 0x4001.
    – Peter B.
    Mar 25, 2020 at 17:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.