Posted June 21, 201114 yr 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
June 21, 201114 yr 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, 201114 yr by LCF-AT
June 21, 201114 yr Author 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
June 21, 201114 yr 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
June 22, 201114 yr Author @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, 201114 yr by tukki_2020
Create an account or sign in to comment