flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > opposite of "/" ?

Author
Thread Post new topic Reply to topic
Slai



Joined: 11 Jan 2006
Posts: 40
Location: NY/Bulgaria
Slai 31 Aug 2006, 01:41
Is there a way to put 2 lines of code in one line ? or a macro ? For example:
cmp eax,3 | je case3
Post 31 Aug 2006, 01:41
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 31 Aug 2006, 05:06
maybe this works, i didn't test it:

Code:
macro lines [arg] {arg}
lines <cmp eax,3>, <je case3>    
Post 31 Aug 2006, 05:06
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20430
Location: In your JS exploiting you and your system
revolution 31 Aug 2006, 05:32
Code:
irp instr,<cmp eax,3>, <je case3>{instr}    
Post 31 Aug 2006, 05:32
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 31 Aug 2006, 06:48
See also this thread. Wink
Post 31 Aug 2006, 06:48
View user's profile Send private message Visit poster's website Reply with quote
Slai



Joined: 11 Jan 2006
Posts: 40
Location: NY/Bulgaria
Slai 01 Sep 2006, 09:49
Thanks for the replies. Though I was looking for something like a symbol that can be converted to CR and LF at preprocess time, as I want to use it to fit my import, resources sections, macros and others in less lines (with the tweak from the link I coldn't do that). Maybe something like equ or fix that will convert for example "|" to CR,LF (as I am not using this symbol at all) at preprocess time ? ( I couldn't think of any sybol that is not used by FASM)
ps: I am looking through PREPROCE.INC to try to tweak something, but I am not good at all at reading source code, even as well organized this one is.
Post 01 Sep 2006, 09:49
View user's profile Send private message 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.