HERE+ seems to do what ALLOT is supposed to do, is that right?
ALLOT has some additional alignment restrictions; HERE+ just adjusts the dictionary pointer.
I looked into the code and it seems a bit unclear to me. HERE should be like : HERE DP @ ; As HERE is a prim word, and DP is not visible from outside, I looked into the code and found:
code_HERE: { (++dp)->a = interpreter->here; NEXT; }
code_HERE_X2b: { interpreter->here += (dp--)->n; NEXT; }
Looks like "dp" what is called SP/TOS, whereas &(interpreter->here) is DP. Is this right? We should comment this or rename to a more intuitive name scheming...
"dp" is the Data stack Pointer, "rp" is the Return stack Pointer, "here" is the dictionary pointer.
Using HERE+ for ALLOT did not solve the problem overwriting the text. Any ideas?
See my previous mail.
Segher
- To unsubscribe: send mail to majordomo@freiburg.linux.de with 'unsubscribe openbios' in the body of the message http://www.freiburg.linux.de/OpenBIOS/ - free your system..