flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > [BUG]bug in "IF.inc"? |
Author |
|
revolution 09 Feb 2010, 12:52
Compiles to:
Code: 00402006 8038 00 cmp byte[eax],0 00402009 74 01 jz 0x0040200c 0040200b cc int3 0040200c 8038 00 cmp byte[eax],0 0040200f 75 01 jnz 0x00402012 00402011 cc int3 |
|||
09 Feb 2010, 12:52 |
|
alorent 09 Feb 2010, 21:38
Thanks revolution for confirming the bug.
Is the bug related to the "IF.INC" file or a fasm bug? Thanks! |
|||
09 Feb 2010, 21:38 |
|
revolution 10 Feb 2010, 01:35
This is related to the 'if.inc' macro file. Not to the fasm core assembler. But still definitely needs fixing.
|
|||
10 Feb 2010, 01:35 |
|
baldr 10 Feb 2010, 08:58
alorent,
You're right, this bug is related to parentheses handling in PARSECOND macro. Negation was added twice, before and after opening parenthesis. This should fix it: Code: match (,symb ; 134 \\\{ ; 135 parsed equ parsed neg@cond,< ; 136 define neg@cond ; ADDED define nest@cond + ; 137 define symb@cond ; 138 \\\} ; 139 |
|||
10 Feb 2010, 08:58 |
|
revolution 10 Feb 2010, 09:03
With baldr's fix: now compiles to:
Code: 00402006 8038 00 cmp byte[eax],0 00402009 75 01 jnz 0x0040200c 0040200b cc int3 0040200c 8038 00 cmp byte[eax],0 0040200f 75 01 jnz 0x00402012 00402011 cc int3 |
|||
10 Feb 2010, 09:03 |
|
alorent 10 Feb 2010, 11:13
Thanks baldr!!!
Great work!!! |
|||
10 Feb 2010, 11:13 |
|
Tomasz Grysztar 10 Feb 2010, 16:19
I included the fix in the latest 1.69.12 package.
|
|||
10 Feb 2010, 16:19 |
|
DOS386 14 Feb 2010, 14:22
Tomasz Grysztar wrote: I included the fix in the latest 1.69.12 package. COOL 1.69.12 is out and announcement is hidden in the Macroinstructions subforum. Could you please look into this bug for 1.69.13 ? |
|||
14 Feb 2010, 14:22 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.