CLC - Clear Carry Flag instruction
yehia67 opened this issue · comments
Yehia Tarek commented
Hello, I am planning to work on the CLC instruction,
CLC is a single bit in a system's status register that is used to indicate when an arithmetic operation, such as addition or subtraction, results in a carry-out of the most significant bit (for unsigned arithmetic) or a borrow into the most significant bit (for two's complement arithmetic).
Example
Adding 1 to 255
11111111 (255 in binary)
+ 00000001 (1 in binary)
----------
1 00000000 (Carry out, resulting in 256 in binary, or 0x100 in hexadecimal)
goblinoats commented
This has been completed already by @Prabhat1308 alongside the other clear instructions. Please take a look at others you can possible take-up.