SV: Binary conversion (machine)
- Posted by OthelloVivaldi at hotmail.com Aug 18, 2002
- 396 views
Don, I'm no asm expert, but I believe opcode #B8 means: mov eax, imm32 ; load immedate value into eax and not mov eax, [imm32] ; load via effective address pointer so perhaps your code byteswapped the pointer instead? Maby you could try something like: #50, -- push eax #B8} & int_to_bytes(peek4s(mem)) & -- mov eax, offset mem { #0F, #C8, -- bswap eax #A3} & int_to_bytes(mem) & -- mov offset mem, eax { #58, -- pop eax #C3 -- ret I haven't tested it, it's just a thought. Sincerly Yours, Barbarella