Link to home
Start Free TrialLog in
Avatar of whluk
whluk

asked on

Logical Link Error?!

Dear All,
    What are the possible reasons for a module not included in the EXE even though I know I have linked it up using tlink? -> tlink 123.obj 1.obj 2.obj
in this case, 2.obj is not included. (I checked it with a hexeditor)






Avatar of whluk
whluk

ASKER

For Supplement for the question above,
      I have linked the program (2.obj) such as
mov ah,4ch
int 21h
 
The hexcode for these two statements are for example
EA 4C
CD 21
And I have linked it up with other modules like this
tlink 123.obj 1.obj 2.obj
After linking, I used hexeditor to view the exe file
and I found that the 2 statements are lost somewhere or even not found in the whole program. when i checked it with td, the instruction for instance was call 0060. but the 0060 address was rubbish or in other words, the 0060 address was pointing to the data segment...
CAn you help?

The best
Jacky


Avatar of whluk

ASKER

Another Comment,
     The statement call 0060 was a statement pointing to the 2 lost statements.... ie mov ah, 4ch and int 21h

So when i Steped thru call 0060, the content over there was data segment's.



ASKER CERTIFIED SOLUTION
Avatar of Tommy Hui
Tommy Hui

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial