A83: Re: Re: Can't get this routine to work


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

A83: Re: Re: Can't get this routine to work




LDI sets the parity odd flag (PO) when BC is 0:

 ldi
 jp po,bc_is_zero

> ld a,b
> or c
> jr nz,SwapApd2
> 
> Because ldi does this, in ASM-speak (cause some of these aren't real
> commands)
> 
> ld (de),(hl)
> inc hl
> inc de
> dec bc
> 
> So bc is already decremented for you.


_____________________________________________
NetZero - Defenders of the Free World
Click here for FREE Internet Access and Email
http://www.netzero.net/download/index.html



Follow-Ups: References: