C65 - simple build in text editor

Es gibt 6 Antworten in diesem Thema, welches 2.145 mal aufgerufen wurde. Der letzte Beitrag (28. Februar 2020 um 14:22) ist von Freddy.

  • In the latest available C65-ROM (911001.bin) I found a token for an EDIT command at address $127DB (75739 dec). In the usual manuals and documents about the C65 I didn't find anything about it.

    Gladly I found a textfile "edit.man" (dated 1991/10/23) which I think it was from Fred Bowen or some colleague of him nowadays by Commodore.

    In short: There is a build in simple linebased text editor in the C65.

    In the direct mode you can switch it on with EDIT ON.

    The prompt turns from "READY." to "OK.".

    Now you can - after type in a line number (similar as in BASIC) - write a text, each line can be 160 characters long:

    Bitte melde dich an, um diesen Anhang zu sehen.

    The text ist sorted by the line numbers. You can even LIST the written text:

    Bitte melde dich an, um diesen Anhang zu sehen.

    Saving the text to disc with the DSAVE command:

    Bitte melde dich an, um diesen Anhang zu sehen.

    You can print the saved text to screen with the TYPE command. It is also possible to send it to a printer (see the manual text below).

    Bitte melde dich an, um diesen Anhang zu sehen.

    If you want to edit the text, you can load it with the DLOAD command in the memory again.

    Bitte melde dich an, um diesen Anhang zu sehen.

    If you have enough written, you can switch to BASIC mode again with EDIT OFF. The prompt turns to "READY." again.

    Bitte melde dich an, um diesen Anhang zu sehen.

    I just tested the EDIT command with the C65-ROM (911001.bin). The EDIT token is in the ROMs since version 910624.bin.

    And here is the text of the mentioned "edit.man" file from (1991/10/23):

  • Could be used to create a wole screenfull of text, which a programm could simply 'TYPE' to the screen.

    In example: it could have many Help-Pages on disc without the need to have the helpfiles in memory.

  • At least this EDIT-Command together with the TYPE-Command gives us a standard textformat for 'READMEs' and Manuals explaining the use of software on disk.

    It would be nice if 'TYPE' could accept options, like p.E. /p (one screen/page), and only continue when a key is pressed.

    Even better comfort, if we could scroll back and forward through the PETSCII-Files

  • Hi Snoopy,

    you're amazing. the second Easteregg. i've just informed Paul.

    Let's see, if he has any further information.

    congratulation and i love to see, how you examine the Kernels !!!

    Thanks

    Bitte melde dich an, um diesen Link zu sehen. <- here you can find all MEGA65 related files, games, etc.

    Bitte melde dich an, um diesen Link zu sehen. <- MEGA65 main Homepage. links to all important MEGA65 sites (links on top of the page to Files, Forum, GitHub, Manual,etc.)

    Bitte melde dich an, um diesen Link zu sehen. <-Pauls Blog - constant updates about current tasks, project status, etc.

    Bitte melde dich an, um diesen Link zu sehen.,Bitte melde dich an, um diesen Link zu sehen. <- All Open-Source information regarding MEGA65. Found Bugs ? create an issue there please!

    Bitte melde dich an, um diesen Link zu sehen. <- Join for live chat support and more --- The Future is 8-bit !!!

  • Just a short add for completeness, because I had forgotten it in the first post:

    The token code for EDIT is $45.

    EDIT can be typed also as E<SHIFT+D>

    (similar as nearly every Commodore BASIC command like L<SHIFT+I> for LIST etc.)

  • Zumindest ist 'TYPE' beschrieben im Handbuch.

    TYPE -- Display the contents of a sequential disk file

    TYPE "filename" [,Ddrive] [<,|ON>Udevice]

    Use this command to print the contents of a PETSCII data file on the
    screen. The file must contain lines no longer than 255 characters long
    and terminated by a return character (CHR$(13)). Lines too long result
    in a 'STRING TOO LONG' error.

    TYPE "readme" display the contents of the README file on the screen

    The command sequence below will print the contents of the README file
    on a CBM serial bus printer in upper/lower case mode.

    OPEN 4,4,7: CMD4: TYPE"readme": CLOSE4