Re: A83: Re: Re: Can't get this routine to work
[Prev][Next][Index][Thread]
Re: A83: Re: Re: Can't get this routine to work
Yes, but in these case we are wanting to loop while it isn't set: jp
pe,loop.
David Phillips wrote:
>
> 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
--
Scott "Wrath" Dial
wrath@calc.org
ICQ#3608935
Member of TCPA - tcpa.calc.org
_____________________________________________
NetZero - Defenders of the Free World
Click here for FREE Internet Access and Email
http://www.netzero.net/download/index.html
References: