flat assembler
Message board for the users of flat assembler.

Index > Main > [solved] convert asc2Hex to integer ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1767
Roman 19 Jan 2021, 09:23
I search example to convert asc2Hex to integer.
For example:
Code:
.data
    asc2Hex db '$FF2040E0',0
    int32   dd 0
.code
    
    


PS: I done. Thanks all.
Post 19 Jan 2021, 09:23
View user's profile Send private message Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 798
Location: Russian Federation, Sochi
ProMiNick 19 Jan 2021, 10:51
in both fasm & fasmg that is realized. look sources. no thanks.
Post 19 Jan 2021, 10:51
View user's profile Send private message Send e-mail Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4020
Location: vpcmpistri
bitRAKE 19 Jan 2021, 19:32
https://github.com/zbjornson/fast-hex

If you need to convert several numbers PSHUFB is your friend. Search the board to find mine. Validation can be done with string SIMD instructions.

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 19 Jan 2021, 19:32
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.