为什么此代码中的进位标志设置为 255
INCLUDE Irvine32.inc
.data
.code
main PROC
;adding 1 to 255 rolls AL over to zero:
mov al,255
add al,1 ; AL=0, CF=1 (unsigned overflow)
call DumpRegs
;subtracting larger number from smaller:
sub al,1 ; AL=255, CF=1
call DumpRegs
;subtracting 1 from 255
sub al,1 ; AL=254, CF=0
call DumpRegs
exit
main ENDP
END main
也许我把溢出和进位搞混了,但是由于 1111 1111 是二进制的 255,进位不应该只设置为 256 吗?