The SUB instruction in CPU

66 views Asked by At

Consider the 8-bit CPU only. Let’s say we have two registers, R1 and R2, when performing SUB R1, R2, R2 will be first converted to its two’s complement and than add with R1, but I’m wondering, what if R1 is holding 47 and R2 is holding 250? Cause obviously 250 is out of the range of the signed number in 8-bit, so it can’t be converted to its two’s complement, then how does CPU handle this situation?

0

There are 0 answers