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

Fix overflow handling #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

uiopaubo
Copy link
Contributor

This fix introduces the ADC/SBC implementation from B-Em to fix overflow bugs that manifest themselves in ISO Pascal when the compiler is parsing numeric literals.

The ISO Pascal compiler fails to parse numeric literals, raising an
"Integer overflow" error by executing a BRK instruction. This error
appears to occur due to an incorrect overflow condition that was
fixed in the somewhat related B-Em source code. Thus, it makes
sense to introduce B-Em's NMOS implementation of ADC/SBC into
Elkulator to keep the two programs synchronised and to benefit from
the fixes made to B-Em.
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

Successfully merging this pull request may close these issues.

1 participant