Strange behaviour
Posted: Tue Sep 26, 2006 4:51 pm
This is a code snipet from my keyboard ISR:
xor ah,ah
mov ah,[eax+1]
mov byte [gs:0x0a],ah
The following is the same code but without XOR
mov ah,[eax+1]
mov byte [gs:0x0a],ah
These two codes generate two different results.Could you tell me where is the difference.
By the way I'm working in PM.
10x in advance
xor ah,ah
mov ah,[eax+1]
mov byte [gs:0x0a],ah
The following is the same code but without XOR
mov ah,[eax+1]
mov byte [gs:0x0a],ah
These two codes generate two different results.Could you tell me where is the difference.
By the way I'm working in PM.
10x in advance