vaughn_c_balchunas@cup.portal.com (02/09/91)
I am having trouble linking two files together with prolink. The first file was created with z80mr, and is an OBJ (with extrns). The second file is the syslib REL file. Once I'm in prolink I typed: load file.obj No messages were returned. Next, I typed: link (also tryed search) syslib. When syslib was linked prolink echoed the modules found in syslib then returned. I EXITED the file (same as close) and tryed running it. The program is stuck in a loop. whats weird is that when I look at the trace on the debugger the code lines are all wrong! (different then the print file. It's the same code but the addresses are offset. I can assemble the code and run it with out linking by taking out the parts that need syslib. In fact what I have is a BEGIN that signs on and saves stack. that works by it self. What I did was append the other code to the end of this. Anyway, the entire program doesn't even get passed the sign-on. You should know that I wrote the first part. The BEGIN, with out any consideration of having to link later parts of the code to syslib. Is that a mistake? Also, do I have to define CSEG, DSEG and such at certain parts of the code when linking? What is a COMMON segment? As you can see I'm a Neophyte -- And quite dangerous to innocent source code !