Re: [Ql-Users] GWASL and LIB instruction?

2011-01-31 Thread Norman Dunbar
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


Re: [Ql-Users] GWASL and LIB instruction?

2011-01-31 Thread Petri Pellinen
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 nor...@dunbar-it.co.uk 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


Re: [Ql-Users] GWASL and LIB instruction?

2011-01-31 Thread gdgqler

On 31 Jan 2011, at 10:29, Petri Pellinen wrote:

 
 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?
 
 

That's exactly what I do. Of course you need the _SYM_LST file which is the 
decoded version of the _SYM file. You get this by using the program SYM_BIN on 
the _SYM file.

George

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


[Ql-Users] GWASL and LIB instruction?

2011-01-30 Thread Petri Pellinen
Good evening everybody,

what is the correct way to use the LIB instruction with GWASL (the
lite assembler) ?

From gwasl_text in the zip archive:
LIBfilename
 This copies the (binary) file filename to the _BIN file.

Ummm how would I calculate an offset to a routine compiled inside
this _BIN from the _ASM I'm copying it into?

I would like to break down my project into several _ASM files and
compile these separately into _BIN files and then create a main _BIN
that includes the other ones and orchestrates.

Or would it be a better idea to ditch GWASL and go for as68 from the
c68 package?

Many thanks in advance for any advice.

Best regards,
Petri
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm