RE: SV: Binary conversion (machine)
> 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
Thanks Barbarella, I think you are most correct. I was being sloppy.
When I compiled my program I was using an immediate value and didnt
change it to its proper form (and forgot about it to boot) after I
decompiled it for the opcodes...
Just was not paying attention to detail.
Don
|
Not Categorized, Please Help
|
|