flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Repeating macro |
Author |
|
FlierMate1 18 Jun 2022, 04:34
Can I use repeat maco in Import Table section?
I don't understand the error message "IF USED".
|
||||||||||
18 Jun 2022, 04:34 |
|
FlierMate1 18 Jun 2022, 05:13
Using FASM g
Quote: C:\fasmg>fasmg h.asm Not sure what error is this. FASM 1 did not complain, but other error: Quote: C:\FASMW>fasm h.asm (I add "\include\" or not, also same result, I have even set the environment path) ----FIXED---- should just add "include\win32a.inc", remove the slash from first character Quote: C:\FASMW>fasm h.asm This is the error. Only if I compile right in FASM text editor, it gives the third error (as shown in picture). |
|||
18 Jun 2022, 05:13 |
|
revolution 18 Jun 2022, 06:08
You need to wrap the import macro the other way around.
Code: rept 256 counter { common args equ forward args equ args,dummy#counter,'dummy'#`counter common match =,a,args \{ import kernel,a,dumm257,'dummy257' \} } |
|||
18 Jun 2022, 06:08 |
|
Overclick 18 Jun 2022, 06:16
Easiest trick is:
Code: rept 257 counter { library kernel#counter,'KERNEL32.DLL' import kernel#counter,\ dummy#counter,'dummy'+`counter } |
|||
18 Jun 2022, 06:16 |
|
FlierMate1 18 Jun 2022, 06:37
Overclick wrote: Easiest trick is: Not working, it says "Symbol already defined: import.data:" I am trying revolution's suggestion instead. |
|||
18 Jun 2022, 06:37 |
|
FlierMate1 18 Jun 2022, 06:48
revolution wrote: You need to wrap the import macro the other way around. It works great, but the EXE size grows bigger than 1KB. Thanks. |
|||
18 Jun 2022, 06:48 |
|
revolution 18 Jun 2022, 14:53
FlierMate1 wrote: It works great, but the EXE size grows bigger than 1KB. Thanks. |
|||
18 Jun 2022, 14:53 |
|
FlierMate1 18 Jun 2022, 22:40
revolution wrote:
Far from it, I cannot compile for any value larger than approximately 1850, or else I get "Out of memory" error. With 1850 repetition, the size of EXE is 48KB. |
|||
18 Jun 2022, 22:40 |
|
revolution 19 Jun 2022, 04:41
Use the -m switch.
|
|||
19 Jun 2022, 04:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.