2011-10-14 23:38:50 +02:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; ;;
|
2022-02-12 18:27:41 +01:00
|
|
|
;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;;
|
2011-10-14 23:38:50 +02:00
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
;; ;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
|
|
$Revision$
|
|
|
|
|
|
|
|
; Macroinstruction for making export section
|
|
|
|
|
|
|
|
|
|
|
|
macro export dllname,[label,string]
|
|
|
|
{ common
|
|
|
|
local module,addresses,names,ordinal,count
|
|
|
|
count = 0
|
|
|
|
forward
|
|
|
|
count = count+1
|
|
|
|
common
|
2022-02-12 18:27:41 +01:00
|
|
|
dd 0,0,0, (module - OS_BASE) , 1
|
|
|
|
dd count,count,(addresses - OS_BASE),(names - OS_BASE),(ordinal - OS_BASE)
|
2011-10-14 23:38:50 +02:00
|
|
|
addresses:
|
|
|
|
forward
|
2022-02-12 18:27:41 +01:00
|
|
|
dd (label - OS_BASE)
|
2011-10-14 23:38:50 +02:00
|
|
|
common
|
|
|
|
names:
|
|
|
|
forward
|
|
|
|
local name
|
2022-02-12 18:27:41 +01:00
|
|
|
dd (name - OS_BASE)
|
2011-10-14 23:38:50 +02:00
|
|
|
common
|
|
|
|
ordinal:
|
|
|
|
count = 0
|
|
|
|
forward
|
|
|
|
dw count
|
|
|
|
count = count+1
|
|
|
|
common
|
|
|
|
module db dllname,0
|
|
|
|
forward
|
|
|
|
name db string,0
|
|
|
|
}
|