Re: bitwise manipulation


[Prev][Next][Index][Thread]

Re: bitwise manipulation



Jody etal:

You can, at least on the 86, and maybe the 85, manipulate the individual bits
in a byte.  They can be used as 8 individual flags in a program.  You set or
look at the separate bits with Boolean operators & maybe some arithmetic
operators, usually with the calculator in a binary , octal or hex mode.

You can also shift all the bits to the left or the right or "rotate" them,
which means that the bit that falls off one end of the byte appears at the
other end.

I think 8x's use 2-byte words, so 16 bits are actually involved in the
operations.

Lomp