flat assembler
Message board for the users of flat assembler.

Index > OS Construction > string to number problem

Author
Thread Post new topic Reply to topic
aliceinchains



Joined: 25 Jun 2016
Posts: 1
aliceinchains 25 Jun 2016, 21:13
I used mul and the result of fffffh is 0000001a:2f00ffff edx:eax.
I add all the edx's values together and I mul a pow then add to result is what eax is why isn't it coming out properly? what I mean is what do I have to do to edx:eax to get the correct result 00000000:000fffff
Post 25 Jun 2016, 21:13
View user's profile Send private message Reply with quote
BAiC



Joined: 22 Mar 2011
Posts: 272
Location: California
BAiC 25 Jun 2016, 21:52
you should express yourself with code rather than english as it's far more helpful for us to figure out whats wrong (preferably a small snippet if it is self contained). until you do your problem is subject to serious interpretation.
Post 25 Jun 2016, 21:52
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20298
Location: In your JS exploiting you and your system
revolution 26 Jun 2016, 00:46
aliceinchains wrote:
... what do I have to do to edx:eax to get the correct result 00000000:000fffff
Code:
mov edx,0 ;or you can use xor edx,edx
mov eax,0xfffff    
Post 26 Jun 2016, 00:46
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.