Menu

Block words and a full screen block editor

2025-08-29
2025-08-30
  • Fred Zelders

    Fred Zelders - 2025-08-29

    @oh2aun In 2024 @ https://sourceforge.net/p/flashforth/discussion/726813/thread/34e8380adc/?limit=25#d286 you wrote:
    "I have prepared block words and a full screen block editor. I have not published it yet.
    It stores the blocks in flash, so it eats away from your free program memory unless you have a 128 KB or bigger flash in your PIC24 chip."

    With the release of the Scamp3e users get an extra 2M Dataflash: https://udamonic.com/what-is-a-scamp.html
    Thus the possibility appears to create a screen oriented file system (1024 bytes: 16 lines 64 characters each).

    Do you intend to publish your 'block words' and the 'full screen block editor'?

    That would be great!

     
  • Pere font vilanova

    im interested in use it if we can use the 2MB extra flash memory. in other case my idea is to create a text files save-load tool , to keep the programs saved in this extra memory.

     
    😄
    1
  • Mikael Nordman

    Mikael Nordman - 2025-08-29

    I have some initial code written, that works somehow. Don't exactly remember. I think there was problems with loading blocks in case an error is encountered. The interpreter aborts on a missing marker word and the loading is prevented, making marker unusable with blocks.

    Just tried to use it. It uses some special words, that I have since deleted from FF. Need to check what it was supposed to do.

     
    • Fred Zelders

      Fred Zelders - 2025-08-29

      I'll give it a try :-)

       

      Last edit: Fred Zelders 2025-08-29
  • Mikael Nordman

    Mikael Nordman - 2025-08-29

    I published it. block.fs for PIC18 and Atmega, block24.fs for PIC24 and edit.fs.
    You can play with it, but it is experimental, so don't expect too much.
    The editor requires a VT100 capable terminal.
    Only tested with minicom on Linux.

     
    • Fred Zelders

      Fred Zelders - 2025-08-30

      Thank yoy Mikael.
      I tried block24.fs/edit.fs on my Scamp3.
      Unfortunately some words/definitions are not available on Scamp3 ☹

       
      • Mikael Nordman

        Mikael Nordman - 2025-08-30

        Are you sure? All words are present on my scamp3e.
        You have to load the files core.fs case.fs vt100.fs yourself first.
        Then you can load block24.fs and edit.fs.

        There is a hint about it edit.fs and block24.fs.

        \ #sendm forth/core forth/case forth/vt100 xxxx/forth/block forth/edit
        

        sendm is the command in ff-shell.py for sending multiple files to the serial line.

        What terminal program are you using to send files to the FF serial line ?

         

        Last edit: Mikael Nordman 2025-08-30
        • Fred Zelders

          Fred Zelders - 2025-08-30

          Up till now I used CoolTerm on macOS.
          In the future iTem2 on MacOS
          Will give it a try as soon as the Scamp3e board arrives.
          I'll let you know the result of course.

          Fred

           

          Last edit: Fred Zelders 2025-08-30
          • Mikael Nordman

            Mikael Nordman - 2025-08-30

            The scamp3e is not needed specifically. The block/edit code works the same on any scamp board.

             
            • Fred Zelders

              Fred Zelders - 2025-08-30

              OK. I'll try again on my Scamp3. (has to wait until this evening...)

               
            • Fred Zelders

              Fred Zelders - 2025-08-30

              Hey Mikael!
              I succeeded to build block24 and edit on my Scamp3.
              VT100 terminal emulation on macOS with iTerm2 app [https://iterm2.com] seems to work :-)
              Now I have to get used to the editor/screen key-commands.

              Future steps:
              I have attached a 32 kByte eeprom (I2C interface) AT24C256. So room for 32 screens.
              The AT24C256 is read/write accessible via Pages of 64 bytes each.

               
              👍
              1

Log in to post a comment.