This questions concerns the use of AMR Forth v7 under Linux. This is my first post on this newsgroup.
I have been using my own 80C52 (DS80C320) based board with the old DOS software and am trying to transition to a Linux environment using the newer version 7 software. I have been studying GForth and thought it would be fairly simple to get rolling.
I had some trouble getting the target to respond until I edited config.fs. Here I was able to configure the file to match my crystal frequency of
22.118400 MHz. I can download code and run it for the most part.However, I am having problems with the stack, as seen from the host not matching up with the stack, as seen from the target. I am assuming this is because there is a mismatch between the way the host manipulates the stack and the way the code in the kernel manipulates the stack. This is my vague understanding so far.
If I type, e.g.,
1 2 3 4and look at the stack on the target (by sending values to P1), the stack pointer seems to be working fine. However, the hardware stack looks like
0 1 2 3with 4 stored in R2:A.
I have the old kernel version burned into my rom using tk.bat. If appropriate, how do I make a new kernel to run with v7 software? Is this the source of the problem?
Thanks, Darrell