From: suresh b. <k_s...@ya...> - 2014-10-13 00:06:39
|
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 |