Please tell me what will be the result of the following assembly (pseudo)code?
We have set all bits of the register EAX to 0, so in turn we also have AH, AL, and AX as 0. But when I subtract the lowest bit of AL, we will take the two's complement and add, giving us a bunch of 1s followed by a 0.
XOR eax, eax
SUB al 0x01
So in summary, my question is that on executing the code above, will just AL be full of 1s, or will it also carry over to AX and EAX.