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

Arithmetic overflow is unhelpful? #310

Open
srmaxwell3 opened this issue Jul 14, 2021 · 0 comments
Open

Arithmetic overflow is unhelpful? #310

srmaxwell3 opened this issue Jul 14, 2021 · 0 comments

Comments

@srmaxwell3
Copy link

I've written a shift-and-add multiply example and, in the absence of a carry flag (might've been a good idea, folks) I am left shifting a positive value <= 32767 with the intent of discovering whether the result has become negative. No such luck, however, as the simulator complains "OverFlow Error: the value NNNNN is beyond the calculable range...".

Making the simulator more forgiving of overflow would enable more sophisticated programming.

Make the simulator even more PDP-8-like would be pretty awesome, too!

-+- Sid Maxwell

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