flat assembler
Message board for the users of flat assembler.
Index
> Main > How to use relativeto in fasmg? |
Author |
|
Tomasz Grysztar 15 Aug 2016, 11:46
This works the same as in fasm - if you assemble the above samples with fasm 1.71, you're going to get the same results.
The only difference is that in fasm "relativeto" can only be used to check if expression is relative to one of the addressing symbols pre-defined by the assembler (like "if a relativeto ebx"), while in fasmg you freely define such symbols yourself, with "element" directive: Code: element x a equ 12 b equ 12 + x if a relativeto x display 'a' end if if b relativeto x display 'b' end if |
|||
15 Aug 2016, 11:46 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.