flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > i have problem with call this macro twice with same argument |
Author |
|
revolution 10 Jun 2006, 13:39
"label.offset" is defined twice, once for each "invoke" issued.
Code: macro invoke name { db 0x9a label name#.offset ;<-- name definition occurs here every "invoke" dw name#.value dw 0 } |
|||
10 Jun 2006, 13:39 |
|
senolc_eht 18 Jun 2006, 11:57
i figure out that problem after i write this thread, so i make this ugly solution
Code: macro callz name,id { db 0x9a Reloc#id#.offset: dw Reloc#id#.value dw 0 Reloc#id#.library = name#.library Reloc#id#.ordinal = name#.ordinal } and for the relocation i add this code Code: rept 16 n { db 03 db 01 dw Reloc#n#.offset dw Reloc#n#.library;importdll dw Reloc#n#.ordinal;importnum Reloc#n#.value = 0xFFFF } is there any sugestion to make this code simpler, and is there any way to use rept directive inside the macro thanks for the help _________________ sorry if i always asking..... |
|||
18 Jun 2006, 11:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.