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

[rpncalc] No DUP command? Modify PUSH so that it duplicates last item #184

Closed
cesss opened this issue Nov 15, 2022 · 1 comment
Closed

Comments

@cesss
Copy link

cesss commented Nov 15, 2022

Isn't the DUP command implemented? It's one of the commands I use most in the HP48G. It just duplicates the last item of the stack. In the HP48G it is issued when you press the "ENTER" key.

But rpncalc has "PUSH" instead of "ENTER", so I guess that you could modify "PUSH" so that it pushes a duplication of the last item in the stack.

It's very useful because you need to duplicate temporary results quite often (for keeping them and reusing them later). Or sometimes for using multiplication instead of power.

@cesss
Copy link
Author

cesss commented Nov 19, 2022

I'm closing this issue because the addition of the DUP functionality has been addressed while adding a NEG command here: #185

@cesss cesss closed this as completed Nov 19, 2022
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

1 participant