Mail Archives: djgpp/1997/09/01/11:27:48
At 12:33 8/25/1997 -0700, Temujin wrote:
>Andrew Happ wrote:
>> XCHG AH,AL
>> XOR AH,AH
>
>This basically acomplishes nothing, if AL is moved into AH and then
>zeroed out, the XCHG line is an extra useless line.
Sorry, you're wrong. The previous contents of AH are preserved in the AL
register. XCHG works both ways, remember?
Now, it's true that the XCHG could have been replaced with a MOV, which
would have been clearer. Maybe on some flavor of processor the XCHG executes
one cycle faster, or something. I don't know.
PS. What is this doing on this newsgroup, anyway?
Nate Eldredge
eldredge AT ap DOT net
- Raw text -