Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unused #6

Open
dotmilk opened this issue Sep 25, 2018 · 1 comment
Open

unused #6

dotmilk opened this issue Sep 25, 2018 · 1 comment

Comments

@dotmilk
Copy link

dotmilk commented Sep 25, 2018

Unused is written : unused dp-base @ dp - ;
Then I see dp-base in essence pushes the address of:

dictionary_start:

.long 0

onto the stack and then fetches it, i never see a value set at that location, unless I am missing something.

Shouldn't unused be written a bit more like:

: unused dp-limit dp - ; which would give us the upper limit of the dictionary - where we are now ?

@davazp
Copy link
Owner

davazp commented Sep 25, 2018

I guess you are right 🙂 I don't remember anything about this word and it is not really used in other words so it is quite likely that I didn't read the output value correctly.

You can try with some examples, use unused, allocate a few bytes in the dictionary and check the value again.

And feel free to submit a patch if you would like :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants