flat assembler
Message board for the users of flat assembler.
Index
> Windows > FASM untypical problem |
Author |
|
revolution 15 Apr 2006, 03:27
The "proc" macro has the "if used [proc name]" so all code is ignored unless the proc is actually used. To solve your problem you can edit the proc and endp macros to remove "if used .." and "end if".
|
|||
15 Apr 2006, 03:27 |
|
UCM 15 Apr 2006, 12:50
well then if it is not used it will be stored in the file anyway.. maybe you could put it into a virtual 0 and use some 'store's, but i dunno..
|
|||
15 Apr 2006, 12:50 |
|
AsmER 15 Apr 2006, 18:04
Ok. Thanks.
And by the way, if [my_var_name] mean the value in my_var_name, then what's wrong with that: push byte [my_var_name] ; when my_var_name variable was definied by DB directive. (Error: invalid size of operand) pop byte [pfd.cColorBits] ; pfd.cColorBits definied as BYTE Does it mean, that I can't use 8bits push and pop instructions? Sorry, but I'm new in fasm, and sometimes I asking stupid questions. thx again. |
|||
15 Apr 2006, 18:04 |
|
shism2 15 Apr 2006, 20:35
You just have to do this
Myproc1 dd MyPorc You have to state at least the name of the proc somewhere in the program |
|||
15 Apr 2006, 20:35 |
|
UCM 15 Apr 2006, 21:59
push and pop can each only be 32 and 16 bits.. you just can't push/pop a byte.
|
|||
15 Apr 2006, 21:59 |
|
TDCNL 16 Apr 2006, 09:34
shism2 wrote: You just have to do this Then the whole procedure will be included in the executable code too _________________ :: The Dutch Cracker :: |
|||
16 Apr 2006, 09:34 |
|
Madis731 17 Apr 2006, 11:34
...but its only for debugging, so why not?
If you really don't want to add procedure to your executable, then the use of virtual can help you out as UCM suggested... |
|||
17 Apr 2006, 11:34 |
|
vid 17 Apr 2006, 18:28
shism: put this data in virtual block, so there won't be those unneeded 4bytes:
Code: virtual dd SomeProcedure end virtual but i suggest separate macro package for debugging version, without if used. or, if you are good with macros, you can edit it so that it will check for some symbol. Or it can be done without preprocessor, with something like "if used a | defined debug", but then compilation will be slower |
|||
17 Apr 2006, 18:28 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.