Programming, Fpga, Microprocessor.
differences… The screenshot above is an intermediate result. Operations ADD, ADC (C=0), ADC (C=1), SUB, SBC (C=0) and SBC (C=1) work fine, but AND generates an incorrect status output (Z instead of H,Z,C). The issue here was that for AND, the H (half-carry) and C (carry) flags are unchanged, but