2 ; Macroinstruction for making export section
\r
4 macro export dllname,[label,string]
\r
6 local module,addresses,names,ordinal,count
\r
11 dd 0,0,0,RVA module,1
\r
12 dd count,count,RVA addresses,RVA names,RVA ordinal
\r
31 local x,y,z,str1,str2,v1,v2
\r
38 load v1 dword from names+z*4
\r
40 load v2 dword from names+(z-x)*4
\r
43 load v1 from str1+%-1
\r
44 load v2 from str2+%-1
\r
50 load v1 dword from names+z*4
\r
51 load v2 dword from names+(z-x)*4
\r
52 store dword v1 at names+(z-x)*4
\r
53 store dword v2 at names+z*4
\r
54 load v1 word from ordinal+z*2
\r
55 load v2 word from ordinal+(z-x)*2
\r
56 store word v1 at ordinal+(z-x)*2
\r
57 store word v2 at ordinal+z*2
\r