2009-09-17 13:55:38 +02:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; ;;
|
2012-04-02 17:18:46 +02:00
|
|
|
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
|
2009-09-17 13:55:38 +02:00
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
;; ;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
2012-04-02 17:18:46 +02:00
|
|
|
$Revision $
|
2009-09-17 13:55:38 +02:00
|
|
|
|
|
|
|
; Macroinstruction for making export section
|
|
|
|
|
|
|
|
|
|
|
|
macro export dllname,[label,string]
|
|
|
|
{ common
|
|
|
|
local module,addresses,names,ordinal,count
|
|
|
|
count = 0
|
|
|
|
forward
|
|
|
|
count = count+1
|
|
|
|
common
|
|
|
|
dd 0,0,0, (module-OS_BASE) , 1
|
|
|
|
dd count,count,(addresses-OS_BASE),(names-OS_BASE),(ordinal-OS_BASE)
|
|
|
|
addresses:
|
|
|
|
forward
|
|
|
|
dd (label-OS_BASE)
|
|
|
|
common
|
|
|
|
names:
|
|
|
|
forward
|
|
|
|
local name
|
|
|
|
dd (name-OS_BASE)
|
|
|
|
common
|
2012-02-22 17:06:05 +01:00
|
|
|
ordinal:
|
|
|
|
count = 0
|
2009-09-17 13:55:38 +02:00
|
|
|
forward
|
|
|
|
dw count
|
|
|
|
count = count+1
|
|
|
|
common
|
|
|
|
module db dllname,0
|
|
|
|
forward
|
|
|
|
name db string,0
|
|
|
|
}
|