Also I wanted to ask ... in case I have in my bss section "someVar resb 1" ...
In my code I do
mov eax,[someVar]
Now the problem is evidently I want only a byte to be retrieved .. but I am afraid a whole dword might me put in eax ... "mov eax,byte [somevar]" fails to assemble
For now I AND eax,0xff ..and I get only the byte I need (although usually that byte is all I geteither way but I am afraid it's just coincidence)
Is there a proper way to get the byte directly into eax from someVar.
I could do mov al,[someVar] .. but I am curious on how the byte,word,dword etc. specifications should be use .. Thank you