<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Mon, 11 Oct 2004 20:31:39 +0100 (BST)
From   : Andrew W <a.weston2@...>
Subject: Bit clear

I'm using the following to set a particular bit of a byte using a
byte stored at &70. 
ORA &70
which I think should set the bit in reg.A that is set in &70 shouldn't
it? In BASIC the line is:
t4%=(t4% OR (2^__%))
Hopefully I've got the (2^_%) in &70 AND  t4% in 'A'.
However is there a way of doing bit clear:
t4%=(t4% AND NOT (2^__%))
?

Hope this makes sense.
regards,


A.Weston
-- 
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>