larry.hadley@rose.uucp (LARRY HADLEY) (05/06/91)
From: larry.hadley@rose.uucp (Larry Hadley) Subj: SOMEBODY HELP ME!! DESPERATE. Peterborough, Ontario, CANADA CO CO CO CO CO Essentially, you have to use direct memory manipulation and and access the heap "free" pointers - doing the segment math yourself. TP provides the system variables and routines to do this, but, again, you must do all the segment math and pointer manipulation yourself, assigning your pointer to an available block of free memory and removing that block from the free list. I can't be more specific, as the code I use for my applications is proprietary, and I can't release them. I think I have some PD routines around somewhere, but I don't know exactly where they are! I'll see if I can find them, possibly I'll e-mail them to you. It will also be the programmers responsibility to figure out how to MANIPULATE these >64k blocks of memory. Liberal use of MOD and DIV operands will be necessary. CO CO CO CO One possible way would be to use BINOBJ to make the second .TPU into an OBJ file, and link that file directly in the first unit. But if you're going to do that, you might as well combine the two units into one at the source code stage, since you lose the "smart-linking" flexibility of TP to strip unused code. Since a single .TPU cannot encompass more than 64k of binary code (1 segment), combining 2 TPUs that together compile to greater than 64k is impossible. "But it is well for those of us living in the soft lands of our own day to remember that there are still cultures to whom vengeance is a way of life, and to whom an enemy's women and children are targets as acceptable as they were to a red-handed Viking." -- David Drake. --- 1.1 #3599 Noshabkeming DOES bring spacemen luck!