Strange behaviour

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
muisei
Member
Member
Posts: 79
Joined: Sat Sep 23, 2006 2:10 pm
Location: Bulgaria
Contact:

Strange behaviour

Post by muisei »

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
User avatar
muisei
Member
Member
Posts: 79
Joined: Sat Sep 23, 2006 2:10 pm
Location: Bulgaria
Contact:

Post by muisei »

Stupid me :oops:
I found the problem
Post Reply