flat assembler
Message board for the users of flat assembler.

Index > Main > how to do this ? (string)

Author
Thread Post new topic Reply to topic
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 19 Feb 2010, 12:30

hi Wink

just a small question Embarassed
how to do this ? is this possible ?
Code:
mov eax , 2F0A0D2Ah   ;0Ah=Line Feed  0Dh=Carriage Return
    

and I would do this :
Code:
mov eax , "/??*"  ; "/"=2Fh and "*"=2Ah
    
What should I put instead of "??" ? (instead "0A0D")

I looked in the documentation of FASM,
and I have not found the answer.
thank you.

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 19 Feb 2010, 12:30
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20299
Location: In your JS exploiting you and your system
revolution 19 Feb 2010, 12:44
0xa and 0xd are special characters. You can't put them in strings directly. fasm does not support escaping characters like C does with the \.

However you could write a macro to overload 'mov' ... Twisted Evil


Last edited by revolution on 19 Feb 2010, 13:15; edited 1 time in total
Post 19 Feb 2010, 12:44
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 19 Feb 2010, 13:08

thank a lot revolution
Quote:

fasm does not support escaping characters

I didn't know that.

a macro to overload 'mov' ... Razz ,it's a good Idea
Wink

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 19 Feb 2010, 13:08
View user's profile Send private message Send e-mail 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.