Re: A86: a couple questions that have been building up...
[Prev][Next][Index][Thread]
Re: A86: a couple questions that have been building up...
rabidcow@juno.com wrote:
> On Sat, 20 Jun 1998 14:13:51 EDT ComAsYuAre@aol.com writes:
> >1. what does "or a" do? i fully understand the logic operation "or,"
> >i just
> >don't see why inclusive or-ing something with itself would accomplish
> >anything. does it set the flags?
>
> flags! yes! it clears the carry flag, and a few others:
> CZPSNH
> 0*P*00
It does reset the carry flag (useful like this: <or a / sbc hl,de>), but it
will set or reset the sign and zero flag depending on the value in a. <ld
a,(hl)> doesn't set any flags; <or a> would be a good operation to follow
with. <and a> does the same thing.
References: