bit test
Does the BS1 have a Bit test? Not a pin, but for an internal byte.
I just wanna test a bit of a byte. Sure I can use boolean logic, but
hey, its a BASIC Stamp, it should be easier. (Even the Assembler of
a PIC has this)
I just wanna test a bit of a byte. Sure I can use boolean logic, but
hey, its a BASIC Stamp, it should be easier. (Even the Assembler of
a PIC has this)
Comments
these bits as Bit0 - Bit15. Table 4.1 in the manual covers BS1 variables.
-- Jon Williams
-- Parallax
In a message dated 10/18/02 7:03:12 PM Central Daylight Time,
anode505@y... writes:
> Does the BS1 have a Bit test? Not a pin, but for an internal byte.
> I just wanna test a bit of a byte. Sure I can use boolean logic, but
> hey, its a BASIC Stamp, it should be easier. (Even the Assembler of
>
[noparse][[/noparse]Non-text portions of this message have been removed]
--
http://www.lennard.net.nz/
Ben Lennard, NCEE, Dip EE
Electronics R&D
Hm: +64 4 972 7567
Mb: +64 21 536 627
87 Spencer Street
Crofton Downs
Wellington
New Zealand
"To the optimist, the glass is half full. To the pessimist, the glass is
half empty. To the engineer, the glass is twice as big as it needs to be."
No animals were harmed in the transmission of this email, although the
Dog next door is living on borrowed time, let me tell you! Those of you
with an overwhelming fear of the unknown will be gratified to learn that
there is no hidden message revealed by reading this warning backwards.
> From: jonwms@a...
> Reply-To: basicstamps@yahoogroups.com
> Date: Fri, 18 Oct 2002 20:10:16 EDT
> To: basicstamps@yahoogroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] bit test
>
> On the BS1, bit testing is restricted to B0 and B1 (W0). You can addresses
> these bits as Bit0 - Bit15. Table 4.1 in the manual covers BS1 variables.
>
> -- Jon Williams
> -- Parallax
>
>
> In a message dated 10/18/02 7:03:12 PM Central Daylight Time,
> anode505@y... writes:
>
>
>> Does the BS1 have a Bit test? Not a pin, but for an internal byte.
>> I just wanna test a bit of a byte. Sure I can use boolean logic, but
>> hey, its a BASIC Stamp, it should be easier. (Even the Assembler of
>>
>
>
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and Body
> of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
> On the BS1, bit testing is restricted to B0 and B1
> (W0). You can addresses
> these bits as Bit0 - Bit15. Table 4.1 in the manual
> covers BS1 variables.
John, based on something you said to me the other day
about aliasing, couldn't you test a bit by doing
something similar? i.e.
x var word
xb1 var x.bit1
=====
Chris Savage
Knight Designs
324 West Main Street
Montour Falls, NY 14865
(607) 535-6777
http://www.knightdesigns.com
__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
cited is for the BS2 family and works fine there.
-- Jon (no "h") Williams
-- Parallax
In a message dated 10/21/02 2:34:33 PM Central Daylight Time,
knight_designs@y... writes:
> John, based on something you said to me the other day
> about aliasing, couldn't you test a bit by doing
> something similar? i.e.
>
> x var word
>
[noparse][[/noparse]Non-text portions of this message have been removed]
> Yes, but not in the BS1 (the original poster's
> request). The syntax you
> cited is for the BS2 family and works fine there.
> -- Jon (no "h") Williams
> -- Parallax
Whoops! Twice! I been out for a few days and had 130
new messages...I guess my blurry eyes missed a few
things...
=====
Chris Savage
Knight Designs
324 West Main Street
Montour Falls, NY 14865
(607) 535-6777
http://www.knightdesigns.com
__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/