Closed Turro75 closed 3 years ago
This got me thinking - since all these functions share the same logic, perhaps it'll be better if way make a function (e.g. subtractUpdateFlags or something like that) that:
leftValue
and rightValue
as argumentsThen, instructions like SUBS will use the result (e.g. store it in a register), while CMP will call this function just to update the flags, without using the result.
What do you think?
that's good, I'll do it Tomorrow before the stream
Excellent, thanks!
I moved also addition instructions to a dedicated function, created a new PR
SBCS reworked to reflect latest SUBS implementation RSBS (NEGS) is actually a special case of SUBS where leftValue is 0
close #58