flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 24 Jan 2011, 15:22
You have to "escape" the closing curly brackets to show the depth.
Code: rept ... { macro ... \{ ;<--- escaped for readability here \} ;<--- must be escaped else we close the wrong block } |
|||
![]() |
|
idle 31 Jan 2011, 07:03
i know that, thanks
Code: rept 1{ macro m1{display 'fasm ignores wrong declared macro'} m1 display 'fasm broken here' display 'set rept counter to 0, and all comes ok' } help me with those please Code: var1 equ 1 match =1, var1{ rept 1\{ display 'who is recognized first?' \} } ; is this correct ? match =1, var1{ rept 1{ display 'who is recognized first?' } } |
|||
![]() |
|
revolution 31 Jan 2011, 07:20
idle wrote:
First the match block: Code: match =1, var1{ rept 1{ display 'who is recognized first?' } Code: rept 1{ display 'who is recognized first?' And then the final closing bracket is seen to complete the rept block. So the whole block is like this: Code: match =1, var1{ ;<--- open match rept 1{ ;<--- open rept display 'who is recognized first?' } ;<--- close match } ;<--- close rept |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.