RE: A92: Help


[Prev][Next][Index][Thread]

RE: A92: Help




Thanks for the optimization tip...

-----Original Message-----
From:	Bryan Christopher Turner [SMTP:bcturner@eos.ncsu.edu]
Sent:	Monday, February 9, 1998 10:39 AM
To:	assembly-92@lists.ticalc.org
Subject:	Re: A92: Help


>
> ;Place all headers here
>
> ;Find a handle, [use some routines in the TIOS.H] and store
> ; it in d0
>
> move.w       d0,-(a7)
> jsr          kernel::exec	;They don't call it core[exec] no more,
> 	; kernel::exec is the command in Fargo II
> lea		2(a7),a7
>
> ;place other data
>


  A point on optimization, lea x(a7),a7 always requires two words, one for the
instruction and another for the offset 'x'.  If the offset is 8 or less, addq
is smaller (and I believe faster too).  Try 'addq #2,a7' instead.

--Bryan
bcturner@eos.ncsu.edu