Greg writes:
> What I do not find on that page is the fairly simple method of inverting the
> bits, so ASCII A, decimal 65, bin 01000001, becomes bin 10111110, decimal
> 190...
To mathematically create this simple form of bit complementation, use a
subtract operator, subtracting from 2^n - 1, where n is the number of bits
that your register of interest occupies. E.g., for 8 bits:
255 - 65 = 190
Voila.
Wirt Atmar
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *