Search code examples
stringbasic

6502 BASIC removing a character


How do I delete a character in 6502 basic? Like reverse print... Would there be a way to channel the del key code into a program? I have tried looking at the reference but there is nothing there for a command.


Solution

  • As OldBoyCoder suggests, it can be done - but the character depends on the platform.

    10 PRINT "AB";
    20 PRINT "C"
    

    Output on Commodore PET or Apple II:

    ABC
    

    For Commodore PET add:

    15 PRINT CHR$(20);
    

    Output:

    AC
    

    On the Apple II you'd need to use 8 instead of 20 because the I/O firmware is different.