I have a buffer with a file read into it, how would I take a dword of data from that buffer at say a 10 byte offset and set the data type to hex? - How make the dword compatible to this funtion? cld mov eax,00FF00FFh ;search pattern lea edi,bdw ;search the dword for 0FF00FFh mov ecx,SIZEOF bdw ;size of the dword repnz scasb ;find je found ;if found jump to found: .. found:
i think you are a little confused with the data types in asm and the way information is stored in memory etc
exactly, can anyone care to explain?
Try this: mov eax,dword ptr buffer