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

Stack underflow not reported during runtime #6

Open
mczero80 opened this issue May 5, 2021 · 2 comments
Open

Stack underflow not reported during runtime #6

mczero80 opened this issue May 5, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mczero80
Copy link

mczero80 commented May 5, 2021

Hello,

I did install it on a TI 83+, seems to work, not only on 84+.

I did a short test, something like:

43 11 SWP + . . .

It printed the calculated value just fine, but I could repeat >.< even without a value on the stack, everytime with a different value printed.

I guess, it picks values from memory addresses and prints whatever there is.

Is this normal behaviour? I remember other Forth variants to print an error when the stack is empty.

Cool project nonetheless!

@siraben
Copy link
Owner

siraben commented May 5, 2021

Hi, thanks for using my project! Yeah, I haven't written something to check when the stack is empty, that is a possibility. If you would be able to contribute a patch, I would greatly appreciate it. Otherwise I can take a look later.

@siraben siraben changed the title Everytime different value with . Stack underflow not reported during runtime May 5, 2021
@siraben siraben added the bug Something isn't working label May 5, 2021
@siraben siraben self-assigned this May 5, 2021
@mczero80
Copy link
Author

mczero80 commented May 7, 2021

I don't feel qualified without more practice at coding. Would be happy if you take a look at it when you have time and still fun @coding 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants