Hallo Besucher, der Thread wurde 2,5k mal aufgerufen und enthält 5 Antworten

letzter Beitrag von LGB-Z am

Edit mode in BASIC 10

  • Hi all,


    by sheer chance I discovered that BASIC10 supports (at least with ROM 911001) some kind of 'edit mode'.


    Edit mode is entered by issuing the EDIT ON command. The immediately noticeable effects of this are:


    • prompt changes from "READY." to "OK."
    • the BASIC tokenizer is disabled (keywords like 'PRINT' are not getting tokenized but inserted into program code as-is; also existing tokens in the program text are not resolved)
    • RUN/LOAD/GOTO/GOSUB don't work, instead "?EDIT MODE ERROR" is displayed


    One can leave 'edit mode' again by issuing EDIT OFF.


    I can't quite figure out the actual use of this mode; perhaps it's a development build leftover; Maybe someone else wants to dig a little deeper... :)

  • Interesting ... I have no idea. Maybe it's useful to write programs actually interpreted by something else than the BASIC interpreter but still able to use the normal screen editor in a way that it stores into the memory? Interestingly I cannot find anything about "EDIT" in c65manual.txt either ... How have you discovered this?

  • How have you discovered this?

    Basically just some aimless peeking around with the monitor... there are a lot of strange things going on in the 911001 ROM (for example the patterns occurring at $028000 and $029000, which might or might not be bitmap or sprite data)...


    The token table starts at $032400, and there it caught my eye. I played around a bit with the command but didn't get it to work (not knowing the syntax or being able to single-step through the ROM); but then I discovered the "edit mode" error string at $032BE6 and figured, maybe it's an on/off switch... which it was ;-)


    Maybe it's useful to write programs actually interpreted by something else than the BASIC interpreter

    that could very well be the case... maybe they had an assembler or something like that going


    ...starts dreaming about M65 native C compiler...

  • for example the patterns occurring at $028000 and $029000, which might or might not be bitmap or sprite data)

    This could be sprite data, but not 100% certain.

    Snoopy dug through the kernel alot more intensive and he discovered, that the official C65 demo was placed inside the kernel as well (of course without the IFFs, those need to be on floppy disc).

    you can find more on his discoveries, especially the EDIT ON/OFF here:

    C65 - simple build in text editor