Menu

How to define VALUE and TO in Forth Mecrisp Stellaris

JK Zelisse
2025-04-26
2025-04-29
  • JK Zelisse

    JK Zelisse - 2025-04-26
    This code
    `: VALUE ( n -- )
    CREATE VARIABLE ,
    DOES> @ @ ;
    TO ['] OVER EXECUTE DROP ! ;`
    leads to Unhandeled interrupt.

    The issue is with TO. How should define VALUE and TO ?

    VALUE was in version 2.4.1 but is no longer in version 2.6.5.

     
  • JK Zelisse

    JK Zelisse - 2025-04-29

    I found the FORTH code here:

    mecrisp-stellaris-2.6.5/common/value-classic.txt
    

    This one works.

     
    • Matthias Koch

      Matthias Koch - 2025-04-29

      Also try common/value-ra.txt iff you are on a -ra core for improved performance.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.