Date : Tue, 12 Oct 2004 11:07:40 +0100
From : jgh@... (Jonathan Graham Harston)
Subject: Re: Bit clear
Andrew W <a.weston2@...> wrote:
> I'm using the following to set a particular bit of a byte using a
> byte stored at &70.
> ORA &70
[snip]
> However is there a way of doing bit clear:
> t4%=(t4% AND NOT (2^__%))
AND xx will clear those bits in A that are also clear in xx.
ie, A xx after AND xx
%abcdefgh %01010101 %0b0d0f0h
If you want to clear those bits that are *set* in xx, try
OR xx:EOR xx
A xx after OR xx after EOR xx
%abcdefgh %01010101 %a1c1e1g1 %a0c0e0g0
>
> A.Weston
> --
Your signiture should be *after* your sig seperator, not before it!
--
J.G.Harston - jgh@... - mdfs.net/User/JGH
Badly formed email is deleted unseen as spam