feat: déclaration des imports et exports en utilisant les macros
This commit is contained in:
parent
8cc5b8aa70
commit
c1d24b71fe
|
@ -13,28 +13,18 @@ org 0h
|
||||||
|
|
||||||
header exe <"CE",1,0,0,offset exports,,,>
|
header exe <"CE",1,0,0,offset exports,,,>
|
||||||
|
|
||||||
exports:
|
exporting
|
||||||
db "cpuinfo",0
|
declare cpuinfo
|
||||||
dw cpuinfo
|
declare setinfo
|
||||||
db "setinfo",0
|
declare pciinfo
|
||||||
dw setinfo
|
declare getpciclass
|
||||||
db "pciinfo",0
|
declare getpcisubclass
|
||||||
dw pciinfo
|
declare getcardinfo
|
||||||
db "getpciclass",0
|
declare pcireadbyte
|
||||||
dw getpciclass
|
declare pcireadword
|
||||||
db "getpcisubclass",0
|
declare pcireaddword
|
||||||
dw getpcisubclass
|
declare detectvmware
|
||||||
db "getcardinfo",0
|
ende
|
||||||
dw getcardinfo
|
|
||||||
db "pcireadbyte",0
|
|
||||||
dw pcireadbyte
|
|
||||||
db "pcireadword",0
|
|
||||||
dw pcireadword
|
|
||||||
db "pcireaddword",0
|
|
||||||
dw pcireaddword
|
|
||||||
db "detectvmware",0
|
|
||||||
dw detectvmware
|
|
||||||
dd 0
|
|
||||||
|
|
||||||
PROC detectvmware FAR
|
PROC detectvmware FAR
|
||||||
USES eax,ebx,ecx,edx
|
USES eax,ebx,ecx,edx
|
||||||
|
|
|
@ -11,40 +11,24 @@ org 0h
|
||||||
|
|
||||||
header exe <"CE",1,0,0,offset exports,offset imports,,>
|
header exe <"CE",1,0,0,offset exports,offset imports,,>
|
||||||
|
|
||||||
exports:
|
exporting
|
||||||
db "print",0
|
declare print
|
||||||
dw print
|
declare showdate
|
||||||
db "showdate",0
|
declare showtime
|
||||||
dw showdate
|
declare showname
|
||||||
db "showtime",0
|
declare showattr
|
||||||
dw showtime
|
declare showsize
|
||||||
db "showname",0
|
declare showspace
|
||||||
dw showname
|
declare showint
|
||||||
db "showattr",0
|
declare showsigned
|
||||||
dw showattr
|
declare showhex
|
||||||
db "showsize",0
|
declare showbin
|
||||||
dw showsize
|
declare showbcd
|
||||||
db "showspace",0
|
declare showstring
|
||||||
dw showspace
|
declare showstring0
|
||||||
db "showint",0
|
declare showintr
|
||||||
dw showint
|
declare showintl
|
||||||
db "showsigned",0
|
ende
|
||||||
dw showsigned
|
|
||||||
db "showhex",0
|
|
||||||
dw showhex
|
|
||||||
db "showbin",0
|
|
||||||
dw showbin
|
|
||||||
db "showbcd",0
|
|
||||||
dw showbcd
|
|
||||||
db "showstring",0
|
|
||||||
dw showstring
|
|
||||||
db "showstring0",0
|
|
||||||
dw showstring0
|
|
||||||
db "showintr",0
|
|
||||||
dw showintr
|
|
||||||
db "showintl",0
|
|
||||||
dw showintl
|
|
||||||
dw 0
|
|
||||||
|
|
||||||
imports:
|
imports:
|
||||||
db "VIDEO::addline",0
|
db "VIDEO::addline",0
|
||||||
|
|
Loading…
Reference in New Issue