From: suresh b. <k_s...@ya...> - 2014-10-18 14:23:54
|
Hi Lars, We can do it. externdef as a user-level directive for the extern primitive directive. regards, sureshbk. On Saturday, October 18, 2014 4:46 PM, Lars Maier <lar...@te...> wrote: Okay. So why we don't just introduce externdef as keyword? This would be less work, than caching the extern definitions and wait for their redefinition. Am 13.10.2014 um 02:03 schrieb suresh babu: Yes right exactly and thanks for more clear clarification. > > > > >On Sunday, October 12, 2014 8:17 AM, anonymous coward <nas...@us...> wrote: > > > >>> 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 > >Yup, that's the EXTERNDEF behavior. > >You should called it that. > >------------------------------------------------------------------------------ >Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >http://p.sf.net/sfu/Zoho >_______________________________________________ >Nasm-devel mailing list >Nas...@li... >https://lists.sourceforge.net/lists/listinfo/nasm-devel > > > > > >------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://p.sf.net/sfu/Zoho > > >_______________________________________________ Nasm-devel mailing list Nas...@li... https://lists.sourceforge.net/lists/listinfo/nasm-devel |