flat assembler
Message board for the users of flat assembler.
  
|  Index
      > Macroinstructions > get last label? | 
| Author | 
 | 
| Roman 17 Oct 2024, 20:57 Did fasmw have append ? Last edited by Roman on 29 Oct 2024, 20:48; edited 1 time in total | |||
|  17 Oct 2024, 20:57 | 
 | 
| edfed 29 Oct 2024, 18:38 fasm don't have append keyword.
 you can append equates. and later use the final equate as a string of stuff added one by one. but here, the idea have nothing to do with values of labels, but names of labels. i don't get where in the manual are the stuff related to labels in fasm1. i don't use fasmg at all because i'm a dinosaur and like fasmw too much to go to fasmg. then, be able to compose labels inside my code can help to do OO stuff | |||
|  29 Oct 2024, 18:38 | 
 | 
| Tomasz Grysztar 29 Oct 2024, 19:04 edfed wrote: i don't use fasmg at all because i'm a dinosaur and like fasmw too much to go to fasmg. | |||
|  29 Oct 2024, 19:04 | 
 | 
| macomics 29 Oct 2024, 19:04 Code: macro localthing { local .a .do1: add eax,[.var] jmp .a .do2: mov eax,2 jmp .do1 .var dd ? .a: ret } stuff: localthing mov ebx,eax stuff.local: localthing stuff.verylocal: add eax,[.localvar] localthing .localvar dd 0 tryit: call stuff.do1 call stuff.local.do2 mov ecx,[stuff.verylocal.var] ret | |||
|  29 Oct 2024, 19:04 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.