Re: A86: actual asm help


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

Re: A86: actual asm help




No, it still contains 1.  I think he was thinking it'd contain 0, like CP
would do 1-1.  Before this

 ld a,1
 ld (hl),a

So I think that yes, it would contain 1 :)

> > > ld a,(hl)
> >  > cp 1    ...........does a now contain 1
> >
> >  Yes.  CP only sets the flags, it does not change the value of anything.
> >
>
>
> uh...that would be no, then :-)




References: