flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
comrade 09 Aug 2006, 22:38
Why do you expect it to throw errors?
The label 'kernel8932njskafds' is only for yourself. I am not sure if Privalov changed the import macros used inside apia\*.inc include files, but they could be automatically forcing library import table directives. |
|||
![]() |
|
vbVeryBeginner 09 Aug 2006, 22:55
yo comrade :p
btw, i suggest at least it notices users that something wrong there. coz if u do something like below Code: section '.idata' import data readable writeable library user32, 'USER32.DLL' import use32,\ MessageBox,'MessageBoxA' the app get asssembled but the app wouldn't perform as intended coz a typo in import use{r}32. well, maybe somebody would spend several minutes?? ![]() ![]() |
|||
![]() |
|
okasvi 10 Aug 2006, 00:33
Yep, I think import macro should warn if no library 'handle' used found...
with 'handle' I mean library <this>, 'humm' |
|||
![]() |
|
vid 10 Aug 2006, 07:12
Code: macro library [name,string] { forward local _label if defined name#.redundant ;<---------- HERE if ~ name#.redundant ;<----------- HERE dd RVA name#.lookup,0,0,RVA _label,RVA name#.address end if end if common dd 0,0,0,0,0 forward if defined name#.redundant ;<------- HERE if ~ name#.redundant ;<--------- HERE _label db string,0 rb RVA $ and 1 end if end if } it's for case, when you have library listed in your imports, but you aren't using anything from it, thus you aren't importing anything from it, thus import data is empty, which is probably bug under windoze. Otherwise it would be annoying while starting project, you would either have to add things to import section 3-4 times, or fakele "use" some proc from library |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.