[A83] Re: Conditional bcall()ing


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

[A83] Re: Conditional bcall()ing




> 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'.)
-----------------------------------------------------
Mail.be, Free WebMail and Virtual Office
http://www.mail.be