flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Problem with restore |
Author |
|
LocoDelAssembly 28 Jun 2010, 22:53
Code: use32 fred equ [esp+8] mov eax, fred restore fred mov edx, fred ; undefined symbol 'fred'. |
|||
28 Jun 2010, 22:53 |
|
baldr 29 Jun 2010, 08:50
Hapkidoyoka,
Probably you've used fred equ something several times, you need proper number of restore fred. Preprocessor directives and macro invocations together with their arguments are protected from equates expansion (unless noted, e.g. match directive expands them in matched sequence). |
|||
29 Jun 2010, 08:50 |
|
Hapkidoyoka 04 Jul 2010, 15:33
LocoDelAssembly and baldr,
Thanks for your replies, and I apologise for my late response (work and life interfering with hobbies again ). In my frustration I posted an poorly stated question, and broke one of my rules: Never code when I'm really tired. Maybe that rule should apply to posting questions too . You were both correct, and I believe this problem solved. I thought I'd make a proper submission of the relevant code ripped out of my project. This raised a different problem, which strangely doesn't affect my full project. In submacro.i: Code: if defined SubName#@Args I don't think I can easily replicate the environment of my project (~400KB of source), but you guys know your stuff, eh? So, if you could look at this and me give any lessons, they will be gratefully received. With respect, Hapkidoyoka EDIT: I'm an idiot... I missed commas on the SubCall lines in testsub.s They should be: Code: SubCall SubbyOne ,1,2 SubCall SubbyTwo ,3,4 Still, should any fasm experts take the time to look at these macros, I'd appreciate any tips. Thanks again, Hapkidoyoka
|
|||||||||||
04 Jul 2010, 15:33 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.