You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, yes, you're right, as I learned recently, the handling of the carry flag is broken for subtraction. A proper fix will require a reimplementation of the ALU logic and number representation. I haven't gotten to it yet, but I'll try to do it once I have some more time. And of course I would welcome PRs 😅.
By the spec it's defined as
DEST ← (DEST – (SRC + CF));
But I think it's implemented as
DEST ← (DEST – SRC + CF);
Reproducible with this snippet.
The text was updated successfully, but these errors were encountered: