UF needs help with x86 assembly. by unknownfile at 10:11 PM EDT on June 12, 2006
Hello!

Here's my problem:

I'm attempting to try and move the bytes in a register over so they are readable by another function. So:

DEAD0000 would become 0000DEAD

If anyone knows the x86 function please tell me.
by Josh W at 5:39 AM EDT on June 13, 2006
so, basically you want to shift the high 16 bits into the lower part?

Which this is dividing it by 65,536

like DEAD0000 is in eax you would do this

shr eax, 10H


or do you want to swap them? i.e. 12345678 -> 56781234

mov dx, ax
shl edx, 10H
shr eax, 10H
add eax, edx




by unknownfile at 9:40 AM EDT on June 13, 2006
Thanks Josh, you have saved my ass yet again.


Go to Page 0

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source