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 ;-(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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) :
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 ;-(
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