flat assembler
Message board for the users of flat assembler.
Index
> Main > can't put dot at start of label |
Author |
|
okasvi 07 Feb 2006, 10:40
fasm.pdf wrote: The label whose name begins with dot is treated as local label, and its Code: proc test invoke lstrcmpi, szSomething, szSomething2 test eax, eax jz .here invoke lstrcmpi, szBleh, szBleh2 test eax, eax jz .there jmp.quit .here: xor eax, eax jmp .quit .there: mov eax,1 .quit: ret endp i hope this made it clear _________________ When We Ride On Our Enemies support reverse smileys |: |
|||
07 Feb 2006, 10:40 |
|
vid 07 Feb 2006, 10:45
or if it doesn't than this should:
Code: a: ;namespace 'a' .sub1: ;a.sub1 jmp .sub1 ;jumps to a.sub1 jmp a.sub1 ;jumps to a.sub1 jmp b.sub1 ;jumps to b.sub1 b: ;namespace 'a' .sub1: ;b.sub1 jmp .sub1 ;jumps to b.sub1 jmp a.sub1 ;jumps to a.sub1 jmp b.sub1 ;jumps to b.sub1 b.sub2: ;namespace 'b.sub2' .sub1: ;b.sub2.sub1 jmp .sub1 ;jumps to b.sub2.sub1 jmp b.sub2.sub1 ;jumps to b.sub2.sub1 ... etc ... |
|||
07 Feb 2006, 10:45 |
|
karl 07 Feb 2006, 10:53
wicked thanx. should have read fasm.pdf more carefully.
|
|||
07 Feb 2006, 10:53 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.