Menu

problems an ideas

alex42
2008-11-09
2012-11-19
  • alex42

    alex42 - 2008-11-09

    Hello !!
    I'm quite new to forth an Pic Systems an now i've got
    a problem.
    what is wrong with this simple word (waitkey) :

    key? ok <16,0>0
    ok <16,0>0
    ok <16,0>0
    waitkey begin key? 0 <> until ; ok <16,0>0
    ok <16,0>0
    waitkey                                   < ---- after execution the pic warmstarts
    FlashForth V3.3 on PIC18F2520

    AND I HAVE NO IDEA WHY ?????

    If anybody knows what i'm doing wrong please let me know...

    -----

    I have also a few suggestions for FF :

    1. can you please change EMIT to not block the ESC(d'27') key. Otherwise it is not possible to emit ansi-sequences.
    2. can you defer (like prompt) the emit, key, key? words. Other users can write words for lcd-displays or something...

    P.S.  FF is a great program !! Sorry for my poor english ;-(

     
    • Mikael Nordman

      Mikael Nordman - 2008-11-09

      Hi Alexander.

      Your problem is that the BEGIN...UNTIL loop blocks and
      the watchdog restarts the PIC.

      You must add CWD or PAUSE to your loop to avoid the restart.

      I have left out your improvement ideas to make FF more stable
      and make it less propable to have garbage on the screen.
      If you emit some garbage the terminal could hang, and this is avoided
      by the filtering in EMIT.

      I will consider those suggestions for the next version of FF.

      You can remove the output filtering from EMIT by editing the
      FF assembly code.

      Cheers and good luck,
      Mikael

       

Log in to post a comment.