[A83] Re: Conditional bcall()ing


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

[A83] Re: Conditional bcall()ing




> Van: Emir Sakic <saka@hotmail.com>
> 
> #define bcall_z(addr) jr nz,$+5 \ rst 28h \ .dw addr
> 
> don't be sorry because I am right!
> 
> $ points to the place before jr.
> 
> jr nz  = 1 byte
> branch = 1 byte
> rst    = 1 byte
> addr   = 2 bytes
> ----------------
> sum    = 5 bytes
> 
> If you still don't believe go test it.

Well, if I remember well (been on holiday...) I first checked it... But
could also be that I only looked the (assembled) hex-format. Two's
complement of 5 is 3...

	Henk Poley <><