flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Help with this ASSUME issue |
Author |
|
bitshifter 23 Feb 2010, 20:05
I never used assume, but i have used label
Code: label reg_base at ebp |
|||
23 Feb 2010, 20:05 |
|
alorent 23 Feb 2010, 20:21
Thanks bitshifter! That works fine for the above example.
The problem is that I want to chage later the "reg_base" to another register: Code: label reg_base at ebp label reg_base at edi ; <--- FAILS!!! It says "symbol already defined" Is there an alternative solution to support the above? |
|||
23 Feb 2010, 20:21 |
|
Borsuc 23 Feb 2010, 20:46
Assume is a macro. "reg_base", if a symbolic constant (i.e 'equ' or 'define') will probably not get expanded, which is why it gives an error...
|
|||
23 Feb 2010, 20:46 |
|
bitshifter 23 Feb 2010, 22:16
You could use dot operator (.) to give its own scope...
Code: scope1: label .x at ebp scope2: label .x at edi ... mov edx,[scope1.x] mov ecx,[scope2.x] |
|||
23 Feb 2010, 22:16 |
|
alorent 24 Feb 2010, 06:01
Thanks bitshifter! I will try that!
|
|||
24 Feb 2010, 06:01 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.