(I cross post it here because I did not know that group was moderated and might attract more non-tech users.)
Group, I played with JLOC for several days and now I met a problem that puzzled me hard. I linked a .com file with jloc, and I set up data segment at the begining of the .com file to handle a seperate data segment. I have a global variable declared in one .obj file, and used in another .obj file (declared as extern). This variable is not linked correctly as codes from the two .obj files points to two different addresses for the same variable. I compiled the .obj files with /ms parameter (means small code, small data) with watcom c 11.0. I have nothing in _DATA. Data is all in _BSS, so that I am able to link a .com executable and to have seperate data and code segments.
I uploaded all files (complete with source) and you can download from
Note: You do NOT need to have watcom c 11.0 (downloadble at
vax, 9000