Want to find out where a binary program is being loaded? The first six bytes will give you the answer.
The following program reads them:
10 OPEN #2,4,0,“D:YOURPROG. OBJ“
20 FOR 1=1 TO 6:GET #2,A
30 PRINT A:NEXT I:CLOSE #2
Ignore the first two values which will be 255. Multiply the fourth value by 256 and add the third byte to the result. You now have the starting address. Repeat the above for values five and six to find the ending address of the binary program.