hi,
hope there's somebody around in the world of web-programming who remembers old BASIC and MASM.
here is what i got :
compiled BASIC-program start.exe
compiled BASIC program prog1.exe
three libraries of asm-modules
asm.lib, prog.lib and start.lib, where asm is the base-library. prog needs asm,start needs asm and
prog.
start.exe is linked with all three libraries,
prog1.exe is linked with asm.lib and prog.lib
start.exe does a lot of things. its BASIC-code is very small since i've rewritten most of it in
assembler. everything works fine and there's no problem with asm.
start.exe also calls prog1.exe (using chain) and it does so 'cause i didn't know how to invoke a BASIC-program from assembler.
and now the problem:
when prog1 is running all the assembler-functions can't access the data declared in the assembler
modules.
example: filename declared as
CFG_DAT DB 'cfg.dat',0
and
LEA SI,DS:CFG_DAT
will not give the correct address.
what's the problem and what can I do to analize it ?
ANY help appreciated
greetings from germany
hope there's somebody around in the world of web-programming who remembers old BASIC and MASM.
here is what i got :
compiled BASIC-program start.exe
compiled BASIC program prog1.exe
three libraries of asm-modules
asm.lib, prog.lib and start.lib, where asm is the base-library. prog needs asm,start needs asm and
prog.
start.exe is linked with all three libraries,
prog1.exe is linked with asm.lib and prog.lib
start.exe does a lot of things. its BASIC-code is very small since i've rewritten most of it in
assembler. everything works fine and there's no problem with asm.
start.exe also calls prog1.exe (using chain) and it does so 'cause i didn't know how to invoke a BASIC-program from assembler.
and now the problem:
when prog1 is running all the assembler-functions can't access the data declared in the assembler
modules.
example: filename declared as
CFG_DAT DB 'cfg.dat',0
and
LEA SI,DS:CFG_DAT
will not give the correct address.
what's the problem and what can I do to analize it ?
ANY help appreciated
greetings from germany