flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > zero

Author
Thread Post new topic Reply to topic
Azu



Joined: 16 Dec 2008
Posts: 1159
Azu
Problem solved Smile thanks guys!


Last edited by Azu on 30 Aug 2009, 11:34; edited 1 time in total
Post 29 Aug 2009, 04:29
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Azu



Joined: 16 Dec 2008
Posts: 1159
Azu
Over 50 views and no replies? Crying or Very sad
Post 30 Aug 2009, 04:10
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
ass0



Joined: 31 Dec 2008
Posts: 521
Location: ( . Y . )
ass0
i would help you if i would not hate macros xD.

Seriously i hate them, i always go for a procedure.

btw what is the error output? maybe the answer is there Wink
Post 30 Aug 2009, 04:54
View user's profile Send private message Reply with quote
Azu



Joined: 16 Dec 2008
Posts: 1159
Azu
"error: invalid expression."
Post 30 Aug 2009, 04:58
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17665
Location: In your JS exploiting you and your system
revolution
or is a binary operation. Try |
Post 30 Aug 2009, 05:00
View user's profile Send private message Visit poster's website Reply with quote
ass0



Joined: 31 Dec 2008
Posts: 521
Location: ( . Y . )
ass0
there is Very Happy, try cutting each else if until it will be a valid expresion, so you can isolate the "invalid part" =D
Post 30 Aug 2009, 05:05
View user's profile Send private message Reply with quote
ass0



Joined: 31 Dec 2008
Posts: 521
Location: ( . Y . )
ass0
woot revo won me Very Happy
Post 30 Aug 2009, 05:06
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17665
Location: In your JS exploiting you and your system
revolution
ass0, you are pwned! Laughing
Post 30 Aug 2009, 05:08
View user's profile Send private message Visit poster's website Reply with quote
Azu



Joined: 16 Dec 2008
Posts: 1159
Azu
Thanks.. but now it says "invalid operand" Confused
Post 30 Aug 2009, 05:09
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17665
Location: In your JS exploiting you and your system
revolution
Code:
if xmm0 eqtype al
 display "WTF!"
end if    
Output ---> "WTF!"
Post 30 Aug 2009, 05:12
View user's profile Send private message Visit poster's website Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 709
Location: Adelaide
sinsi
For me, macros=yuk

Memory zeroing can be 3? bytes shorter by using "and [var],0"
Post 30 Aug 2009, 05:14
View user's profile Send private message Reply with quote
Azu



Joined: 16 Dec 2008
Posts: 1159
Azu
revolution wrote:
Code:
if xmm0 eqtype al
 display "WTF!"
end if    
Output ---> "WTF!"
WTF

How do I tell if something is an xmm register then?


sinsi wrote:
For me, macros=yuk

Memory zeroing can be 3? bytes shorter by using "and [var],0"
Thank you
Post 30 Aug 2009, 05:16
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17665
Location: In your JS exploiting you and your system
revolution
Azu wrote:
How do I tell if something is an xmm register then?
in

Look for "in" in the fasm manual.
Post 30 Aug 2009, 05:19
View user's profile Send private message Visit poster's website Reply with quote
ass0



Joined: 31 Dec 2008
Posts: 521
Location: ( . Y . )
ass0
Code:
use64

macro   zero    var{
   if      (var eqtype rax) | (var eqtype eax) | (var eqtype ax) | (var eqtype ah) | (var eqtype al)
           xor var,var
 end if
}

zero    eax
     

this compiles very fine for me.
Post 30 Aug 2009, 05:28
View user's profile Send private message Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 709
Location: Adelaide
sinsi
>Look for "in" in the fasm manual.

Reminds me of a bash.org quote about googling for 'the who'
"'the' is a common word and has been ignored"
"'who' is a common word and has been ignored"
Post 30 Aug 2009, 05:30
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17665
Location: In your JS exploiting you and your system
revolution
It is easy to find as long as one does not naively search directly for "in", that would just be nuts.
Post 30 Aug 2009, 05:36
View user's profile Send private message Visit poster's website Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 709
Location: Adelaide
sinsi
539 "in"'s in the pdf. Is there a tutorial specifically for macros?
I usually don't like using them (except in really basic situations) but seeing some of the things they can do I am willing to become a convert...

>that would just be nuts
Yeah, but what else to search for?
Post 30 Aug 2009, 06:02
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17665
Location: In your JS exploiting you and your system
revolution
Search for "in operator". How many of those are there?
Post 30 Aug 2009, 06:13
View user's profile Send private message Visit poster's website Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 709
Location: Adelaide
sinsi
"in operator" Hah! Of course! (I would never have thought of that).
One of these days I will read the whole pdf, sober too Very Happy
Post 30 Aug 2009, 06:25
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.