flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Complex conditions in .IF, .WHILE... Goto page Previous 1, 2 |
Author |
|
Tomasz Grysztar 11 Jan 2006, 23:47
Hey, you just found a bug in the IRPS directive! Try with 1.65.6.
As for the second problem, it needs correction in the macro. |
|||
11 Jan 2006, 23:47 |
|
Tomasz Grysztar 11 Jan 2006, 23:52
I updated the above attachment with the correction (just some labels needed to get preceded with double dots). Also the fasmw 1.65.6 package already contains the new version of IF.INC.
|
|||
11 Jan 2006, 23:52 |
|
alorent 11 Jan 2006, 23:59
Tomasz, you are not only a genious but you also offer the perfect support for a software!!!
It worked just FINE! Thanks man! |
|||
11 Jan 2006, 23:59 |
|
silkodyssey 13 Jan 2006, 02:03
Can the macros be nested, for instance a .if within .if?
_________________ silkodyssey |
|||
13 Jan 2006, 02:03 |
|
Tomasz Grysztar 13 Jan 2006, 03:07
Of course.
|
|||
13 Jan 2006, 03:07 |
|
silkodyssey 13 Jan 2006, 03:13
Ah yes, I did a little test that produced an error but I just saw the source of the error was something else. Sorry for the annoyance but thanks for replying anyway.
_________________ silkodyssey |
|||
13 Jan 2006, 03:13 |
|
farrier 13 Jan 2006, 04:32
I've tried clicking of the download link for the IF.INC file in the post dated: 11 Jan 2006, 15:54.
All I get is a 0 byte file named 2001. What am I doing wrong? I don't think I've ever had a problem downloading a file from this site. Thanks for these new features Tomasz! farrier _________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||
13 Jan 2006, 04:32 |
|
rugxulo 13 Jan 2006, 10:50
Tomasz Grysztar wrote: Well, BTW, I have almost no comments in fasm's sources, but still have no such problems with my code, even the parts written six years ago. Well, the label naming and some code conventions do help, anyway... I noticed (in 1.65.7 for DOS) that you commented only 192 lines of code (out of 21,832). That's less than one percent!!! Nevertheless, I'm glad you didn't use too much high-level stuff in there. P.S. Why not just upload a diff of the changes from 1.64 to the current experimental release (e.g., for 1.65.8)? Got something against diff and patch? Or how about just the updated .EXE? P.P.S. Today's the day to load up on Lucky Charms. Bon appetit! |
|||
13 Jan 2006, 10:50 |
|
Tomasz Grysztar 15 Jan 2006, 17:25
The updated version of macros allows now also the "signed" prefix for <, >, <=, >= comparisons, like:
Code: .if signed eax > 0 ; ... .endif farrier: is this problem repeating? |
|||
15 Jan 2006, 17:25 |
|
farrier 15 Jan 2006, 17:44
Tomasz,
I just tried it again and the same thing happened. But, I have DownLoad Accelerator Plus set up to intercept and handle downloads. It creats either a zero byte length file or a 5kB file with HTML code. I just tried right clicking on the download link and chose Save File As and it saved a file named Download.php with the If.Inc file contents. Usually the right click doesn't work for me with the download.php thing. It seems to be working the opposite way it usually does; it might be my machine. But, problems solved. I had looked at the file in the source code for 1.65, and so far everything seems to work as expected . Thanks again, farrier _________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||
15 Jan 2006, 17:44 |
|
alorent 16 Jan 2006, 06:43
Thanks for the signed updated. This is becoming a real powerful macro
|
|||
16 Jan 2006, 06:43 |
|
Tomasz Grysztar 08 Feb 2006, 10:22
shism2 wrote: is there a possibilty of you adding author ( asmgges ) hll .on macros ? The condition parsing macros are made in a way which allows to add easily any new syntaxes, like: Code: macro .on cond,[instr] { common local ..else JNCOND ..else,cond instr ..else: } .on eax=ecx & signed ebx>0, invoke ExitProcess,0 |
|||
08 Feb 2006, 10:22 |
|
dead_body 11 Feb 2006, 15:34
code:
Code: .if eax = 0 inc eax .endif generate: Code: cmp eax,0 jnz ... maybe it possible to do it like in masm, to generate Code:
test eax,eax
jnz ...
|
|||
11 Feb 2006, 15:34 |
|
Tomasz Grysztar 11 Feb 2006, 15:44
Simple
Code: .if eax does it with the TEST instruction. It's very simple to add such optimization there, anyway. And possibly even some more? |
|||
11 Feb 2006, 15:44 |
|
dead_body 11 Feb 2006, 17:01
Tomasz Grysztar
Thank you for quick reply. |
|||
11 Feb 2006, 17:01 |
|
silkodyssey 14 Apr 2006, 16:58
Has the syntax for doing signed comparisons with the .if macros changed? The example shown in this thread doesn't seem to work. I am using fasm 1.65.7
_________________ silkodyssey |
|||
14 Apr 2006, 16:58 |
|
silkodyssey 14 Apr 2006, 17:06
Ah I've found the problem, I was testing it with the equality operator. It works fine.
_________________ silkodyssey |
|||
14 Apr 2006, 17:06 |
|
silkodyssey 14 Apr 2006, 17:31
I think a .break (and maybe .continue) macro would be a good addition to the .if macro set. Any thoughts on the idea?
_________________ silkodyssey |
|||
14 Apr 2006, 17:31 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.