Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hi, hope there's somebody around i

Status
Not open for further replies.

fheyn

Programmer
Mar 22, 2001
198
DE
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top