From: Lars M. <lar...@te...> - 2014-10-03 11:16:45
|
Hi, Am 02.10.2014 um 22:02 schrieb Cyrill Gorcunov: > Hi Lars, sorry for delays! I'll reply hopefully on weekend once > I get more free time. That said the email is seen and not lost. I didn't expect any answer since I saw the date of the last activity. :D Am 02.10.2014 um 06:54 schrieb suresh babu: > If an extern is used in any program, it mean that the defined variable > / label / name is globally defined. Then why again making it a gloabl? > You mean like MASM's EXTERNDEF? > > http://msdn.microsoft.com/en-us/library/91sxd44w.aspx To make it clear, here is an example: myfunc.inc: %define MY_FUNC_FLAG_A 0x0001 %define MY_FUNC_FLAG_B 0x0002 [...] ; myfunc(param1, param2) : result ; this function does something and returns a value of it [extern myfunc] myfunc.asm: %include 'include/myfunc.inc' [global myfunc] section .code myfunc: push ebp mov ebp, esp mov eax, [ebp+0x08] test eax, MY_FUNC_FLAG_A jnz .flagA [...] otherfile.asm %include 'include/myfunc.inc' section .code push 0 push MY_FUNC_FLAG_A call myfunc Am 02.10.2014 um 17:31 schrieb H. Peter Anvin: > Would you be willing to > write up a patch? I dont have much time in the next few weeks because university starts again, but I'll do my best to find time and implement this feature, if wanted. It would be great if you could support me if there are any questions. |