Hi Joe,
So....
Data @0 , 6
read 0, x
Would the variable x be equal to 00000110b
so then to make it 00100110 I would OR it with 00100000?
Thanks, Don
Hi Joe,
So....
Data @0 , 6
read 0, x
Would the variable x be equal to 00000110b
so then to make it 00100110 I would OR it with 00100000?
Thanks, Don
http://en.wikipedia.org/wiki/Bitwise_operation
I am not a MATH Guy, but I believe in the example you listed, a bitwise OR would do that. Here is a link with some info. Or cannot you just add the 32 to six ?
Last edited by Archangel; - 24th February 2009 at 06:35.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
with PBP, 4 Bit number don't exist. I know STAMPs have Nibble variable, but not in PBP. You have Bit, BYTE, and WORD. So you could use OR or just directly set the bit you want
ByteA = %110
ByteA.5=1
should do the trick as well.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks