art kennedy
03-12-05, 09:11 PM
Following is a routine I have used for a long time on a NMIX board with MAXFORTH
version 3.3. It works great. I use it for debugging. Just insert SHWAIT in the
code for a word and when execution reaches that point it shows the stack in a
nifty little frame and waits for a key. The frame is made of PC box characters,
in case you're not viewing this message that way and were wondering.
: SHWAIT ( shows stack preceeded by new line and waits for key
CR ." ┌────────────┐" .S CR ." └── STACK ───┘" KEY DROP
;
I am working on version 2 of my project and my new NMIX board has version 3.5E
of MAXFORTH. Not good!! The frame characters have the high bit stripped when
loaded and I have had to create an AWFUL kludge to correct them. Of course my
communication setup is for 8 bit transfer and still works porperly with the
older board.
What is happening here and how do I fix it???
version 3.3. It works great. I use it for debugging. Just insert SHWAIT in the
code for a word and when execution reaches that point it shows the stack in a
nifty little frame and waits for a key. The frame is made of PC box characters,
in case you're not viewing this message that way and were wondering.
: SHWAIT ( shows stack preceeded by new line and waits for key
CR ." ┌────────────┐" .S CR ." └── STACK ───┘" KEY DROP
;
I am working on version 2 of my project and my new NMIX board has version 3.5E
of MAXFORTH. Not good!! The frame characters have the high bit stripped when
loaded and I have had to create an AWFUL kludge to correct them. Of course my
communication setup is for 8 bit transfer and still works porperly with the
older board.
What is happening here and how do I fix it???