I have been trying to export procedure from external file to the main assembly program, but it didn't work.
Here is test code from external file:
; Export procedure Summa
format PE GUI 4.0
include 'win32a.inc'
section '.code' code readable executable
proc Summa
Public Summa
ret 2
endp
And in the main file I try to attach Summa:
format PE GUI 4.0
include 'win32a.inc'
section '.data' data readable writeable
extrn Summa as Summa : proc
While compiling main file I get Illegal Instruction error in the line with extrn keyword.
Tried to search the web, but I wasn't lucky to find how I should attach external procedure in FASM...
Thanks!