tukki_2020 Posted June 21, 2011 Posted June 21, 2011 Hey guys, i am new to assembly language and i can't seem to assemble the line in olly:xor byte ptr ds:[eax], byte ptr ds:[ecx] what am i doing wrong?thanks
LCF-AT Posted June 21, 2011 Posted June 21, 2011 (edited) Hi,do not use double brackets. [],[]xor byte ptr ds:[eax], byte ptr ds:[ecx]PUSHAD------MOV EAX,DWORD PTR DS:[1001000]MOV ECX,DWORD PTR DS:[1014000]XOR AL,CLMOV BYTE PTR DS:[1001000],ALNOP ;orMOV ECX,DWORD PTR DS:[ECX]XOR BYTE PTR DS:[EAX],CL-------POPADTry this.greetz Edited June 21, 2011 by LCF-AT
evlncrn8 Posted June 21, 2011 Posted June 21, 2011 Erm nope...Cant xor mem 2 mem..you need to use a register..
tukki_2020 Posted June 21, 2011 Author Posted June 21, 2011 Hey thanks for the quickie. I will try that. What is the difference between these statements:MOV EAX, BYTE PTR DS:[1001000]MOV EAX, DWORD PTR DS:[1001000]Thanks
LCF-AT Posted June 21, 2011 Posted June 21, 2011 MOV EAX, BYTE PTR DS:[1001000] <-- Does not workMOV EAX, DWORD PTR DS:[1001000]Byte = 1 byte | 00DWORD = 4 bytes | 00 00 00 00Word = 2 bytes | 00 00MOV AL,BYTE PTR DS:[1001000] | byteMOV AX,WORD PTR DS:[1001000] | wordMOV EAX, DWORD PTR DS:[1001000] | DWORDgreetz
tukki_2020 Posted June 22, 2011 Author Posted June 22, 2011 (edited) @LCF-AT: thanksok i got it to work as:mov eax, 00404c05mov ecx, 004129f3mov bh,bype ptr ds:[ecx]xor byte ptr ds:[eax],bhinc eaxinc ecxThen i guess that xor byte ptr ds:[eax],byte ptr ds:[ecx] is not a valid instruction.thanks Edited June 22, 2011 by tukki_2020
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now