flat assembler
Message board for the users of flat assembler.
  
|  Index
      > Main > What's wrong with this code? FASM bug maybe? | 
| Author | 
 | 
| revolution 02 Nov 2009, 12:47 The labels need to be local to the outer procedure. Use a dot before the macro local labels.     Code: macro MY_MACRO { local .jmp_label jmp .jmp_label mov ebx, ebx .jmp_label: } | |||
|  02 Nov 2009, 12:47 | 
 | 
| alorent 02 Nov 2009, 18:35 Thanks a lot revolution!
 I thought that the "local" inside the macro should do all that work. Thanks! | |||
|  02 Nov 2009, 18:35 | 
 | 
| revolution 03 Nov 2009, 01:05 local in macros makes the label local to the macro only, that is, the label is internally make unique with a suffix. This is different from procedural localised labels (with a leading dot). | |||
|  03 Nov 2009, 01:05 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.