View Full Version : Eeword
paverbeke
03-14-08, 05:58 AM
Hi,
Can EEWORD be used after a word definition to just save the definition? I defined a simple word, put EEWORD after the ; and save-ram after that. When I restart the IsoPod it hangs when I type WORDS.
Also, do you have an example of the correct use of buffers for the serial port? I have seen examples of allocation, but not correct useage. I have the port working wiothout buffers but it might make it easier with them.
Thanks,
Paul
nmitech
03-14-08, 09:58 AM
Can EEWORD be used after a word definition to just save the definition? I defined a simple word, put EEWORD after the ; and save-ram after that.
You did it right.
When I restart the IsoPod it hangs when I type WORDS.
Can you post the program, or show us the word definition that caused it hang ?
Also, do you have an example of the correct use of buffers for the serial port? I have seen examples of allocation, but not correct useage. I have the port working wiothout buffers but it might make it easier with them.
See I/O programming appnote, page 6-8.
http://www.newmicros.com/store/product_manual/IOProgramming.pdf
Also there are many examples on the download page use serial buffer as well.
http://www.newmicros.com/store/product_details/download.html
paverbeke
03-14-08, 02:59 PM
Hi,
Thanks for the info on the buffers, that seems to be exactly what I need. The code I tried was something simple like
: ADD2 2 2 + ; EEWORD
SAVE-RAM
When I reset the IsoMax prompt appears but hangs when I type WORDS.
Is there a restart vector or something that has to be set? I just wanted to save some word definitions for now.
Thanks,
Paul
paverbeke
03-14-08, 04:02 PM
Hi,
It seems I was not compiling or using the word after defining it. When I do that first before SAVE-RAM things work as expected. Also, does the minimal SEE program from Rob Chapman work with the IsoPod as listed in the posting?
Thanks,
Paul
RMDumse
03-16-08, 09:00 PM
I suspect perhaps you are not doing a SCRUB first, so your Flash is already corrupted with previous definitions. Before starting to move program segments to Flash, if you SCRUB it first, I think your problems may go away.
vBulletin v3.0.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.