flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > zero |
Author |
|
Azu 29 Aug 2009, 04:29
Problem solved thanks guys!
Last edited by Azu on 30 Aug 2009, 11:34; edited 1 time in total |
|||
29 Aug 2009, 04:29 |
|
Azu 30 Aug 2009, 04:10
Over 50 views and no replies?
|
|||
30 Aug 2009, 04:10 |
|
ass0 30 Aug 2009, 04:54
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 |
|||
30 Aug 2009, 04:54 |
|
Azu 30 Aug 2009, 04:58
"error: invalid expression."
|
|||
30 Aug 2009, 04:58 |
|
revolution 30 Aug 2009, 05:00
or is a binary operation. Try |
|
|||
30 Aug 2009, 05:00 |
|
ass0 30 Aug 2009, 05:05
there is , try cutting each else if until it will be a valid expresion, so you can isolate the "invalid part" =D
|
|||
30 Aug 2009, 05:05 |
|
ass0 30 Aug 2009, 05:06
woot revo won me
|
|||
30 Aug 2009, 05:06 |
|
revolution 30 Aug 2009, 05:08
ass0, you are pwned!
|
|||
30 Aug 2009, 05:08 |
|
Azu 30 Aug 2009, 05:09
Thanks.. but now it says "invalid operand"
|
|||
30 Aug 2009, 05:09 |
|
revolution 30 Aug 2009, 05:12
Code: if xmm0 eqtype al
display "WTF!"
end if |
|||
30 Aug 2009, 05:12 |
|
sinsi 30 Aug 2009, 05:14
For me, macros=yuk
Memory zeroing can be 3? bytes shorter by using "and [var],0" |
|||
30 Aug 2009, 05:14 |
|
revolution 30 Aug 2009, 05:19
Azu wrote: How do I tell if something is an xmm register then? Look for "in" in the fasm manual. |
|||
30 Aug 2009, 05:19 |
|
ass0 30 Aug 2009, 05:28
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. |
|||
30 Aug 2009, 05:28 |
|
sinsi 30 Aug 2009, 05:30
>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" |
|||
30 Aug 2009, 05:30 |
|
revolution 30 Aug 2009, 05:36
It is easy to find as long as one does not naively search directly for "in", that would just be nuts.
|
|||
30 Aug 2009, 05:36 |
|
sinsi 30 Aug 2009, 06:02
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? |
|||
30 Aug 2009, 06:02 |
|
revolution 30 Aug 2009, 06:13
Search for "in operator". How many of those are there?
|
|||
30 Aug 2009, 06:13 |
|
sinsi 30 Aug 2009, 06:25
"in operator" Hah! Of course! (I would never have thought of that).
One of these days I will read the whole pdf, sober too |
|||
30 Aug 2009, 06:25 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.