Thank you, Norman, much appreciated! I guess I need to start subscribing to QL Today...
It suddenly makes perfect sense :) I guess I can edit the SYM file to only "export" the labels I want to expose to other modules to hide internal-use-only labels? Best regards, Petri On Mon, Jan 31, 2011 at 10:47 AM, Norman Dunbar <[email protected]> wrote: > Morning Petri, > >> Ummm.... how would I calculate an offset to a routine compiled inside >> this _BIN from the _ASM I'm copying it into? > Include the SYM file created when the lib file was assembled. > > here is an example from a recent article on Easy PEasy (QL Today V15 > issue 1): > > ;---------------------------------------------------------------------------- > ; Pull in the Easy PEasy stuff next - code routines and sprites. > ;---------------------------------------------------------------------------- > in win1_ass_pe_peas_sym_lst > lib win1_ass_pe_peas_bin > > in win1_ass_pe_csprc_sym_lst > lib win1_ass_pe_csprc_bin > > The SYM file defines the offsets into the LIB'd file as offsets from the > current location. > > > Cheers, > Norman. > > > > -- > Norman Dunbar > Dunbar IT Consultants Ltd > > Registered address: > Thorpe House > 61 Richardshaw Lane > Pudsey > West Yorkshire > United Kingdom > LS28 7EL > > Company Number: 05132767 > _______________________________________________ > QL-Users Mailing List > http://www.q-v-d.demon.co.uk/smsqe.htm > _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
