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

LOOPB now ends on 0 instead of -1 like other loops #59

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

DerelictDrone
Copy link
Member

LOOPB was referencing VM.EBX for its ~= 0 condition and not EBX, the local copy that was modified during this call, which meant it was the value before the decrement and not after the decrement.

Documentation of LOOPB was worded the same as LOOPA, LOOPC, LOOP, and LOOPD, which makes me further believe LOOPB's behavior was in error.

Also technically boosts performance of LOOPB,, because it's not indexing EBX from VM twice anymore and is now properly using the local version, same as the other LOOP instructions are.

@DerelictDrone DerelictDrone merged commit 8fea6c3 into wiremod:master Aug 12, 2024
1 check failed
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.

2 participants