kolibrios/programs/develop/fasm/1.73/kolibri/kex/import.inc
Kirill Lipatov (Leency) 0e67df68e0 FASM 1.73.23 by Prohor Nikiforov
git-svn-id: svn://kolibrios.org@7836 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-04-28 23:24:56 +00:00

49 lines
887 B
PHP

; Macroinstructions for making import section
macro library [name,string]
{ common
import.data:
forward
local _label
if defined name#.lookup
if name#.lookup.size
dd name#.lookup,_label
end if
end if
name#.referred = 1
common
dd 0
forward
if defined name#.lookup
if name#.lookup.size
align 4
db '/sys/lib/'
_label db string,0
end if
end if }
macro import name,[label,string]
{ common
align 4
if defined name#.referred
name#.lookup:
forward
if used label
local _label
label dd _label
end if
common
if $ > name#.lookup
dd 0
end if
name#.lookup.size=$ - name#.lookup
forward
if used label
align 4
_label db string,0
end if
common
end if }
macro api [name] {}