[A83] Re: Conditional bcall()ing
[Prev][Next][Index][Thread]
[A83] Re: Conditional bcall()ing
>From: Tijl Coosemans <tijl.coosemans@mail.be>
>Reply-To: assembly-83@lists.ticalc.org
>To: assembly-83@lists.ticalc.org
>Subject: [A83] Re: Conditional bcall()ing
>Date: Mon, 29 Oct 2001 21:45:34 +0100
>MIME-Version: 1.0
>
>
> > From: Tijl Coosemans <tijl.coosemans@mail.be>
> >
> > > From: Emir Sakic <saka@hotmail.com>
> > >
> > > Right, my fault about lables.
> > > jr 3 gave me error with $9327 as start address, thanx for clearing it.
> > >
> > > Anyway to conclude:
> > > #define bcall_z(addr) jr nz,$+5 \ rst 28h \ .dw addr
> > > :)
>
> > indeed, as taken from the Ion.inc file
> >
> > #define bcall(xxxx) rst 28h \ .dw xxxx
> > #define bcallz(xxxx) jr nz,$+5 \ rst 28h \ .dw xxxx
> > #define bcallnz(xxxx) jr z,$+5 \ rst 28h \ .dw xxxx
> > #define bcallc(xxxx) jr nc,$+5 \ rst 28h \ .dw xxxx
> > #define bcallnc(xxxx) jr c,$+5 \ rst 28h \ .dw xxxx
> >
> > I think somebody has already sent this, but since I didn't remember...
>:)
>
>BTW: Even though it's a byte bigger, a 'jp' would be faster than a 'jr'.
>(Not that the gain in speed is very large compared to a 'bcall'.)
Yes, save 2 clocks, BCALL itself adds 500+ for you.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp