Closed amanat-2003 closed 1 month ago
The CMP instruction too seems to be wrongly setting the auxiliary carry flag when it should not be set.
Consider the attached example program that converts a given decimal number to hexadecimal. Take the input value as '15', so the output should be '0F'. But it shows '35'.
Upon tracing, I found that for the operation (05 - 15) it is setting the auxiliary carry flag to 1, whereas it should be 0, because this operation does not require any borrow from the higher nibble.
Fixed.
:tada: This issue has been resolved in version 2.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Auxillary Carry not working properly when INR, DCR, ADI is used