Skip to content

Make MUL_NUM fail on overflow - #112

Open
dstelzer wants to merge 6 commits into
mainfrom
mul-overflow-fail
Open

Make MUL_NUM fail on overflow#112
dstelzer wants to merge 6 commits into
mainfrom
mul-overflow-fail

Conversation

@dstelzer

@dstelzer dstelzer commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@dstelzer

dstelzer commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

It's been suggested that we switch to omult16.a, a more efficient algorithm that also detects overflow consistently (or does it?).

@dstelzer
dstelzer marked this pull request as ready for review September 9, 2026 20:57
@dstelzer

dstelzer commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

@sehugg Mind looking over the 6502 changes quickly to make sure I haven't messed something up? It passes all the test cases, so I'm generally satisfied. (Just ignore the changes to the .adoc file, that's a consequence of how the docs are versioned.)

@dstelzer

dstelzer commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Turns out this algorithm fails on certain values. Unfortunate. Switching to a new one.

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