| ??? 09/19/01 13:13 Read: times |
#15053 - RE: Counting bits |
Hi
the fastest way to count the bits in a byte is a tabel where you write the numbers in. Then you get the number of set bits by MOVC A,@A+DPTR where DPTR points to the beginning of the tabel input is A and A is the result. But you have to use 256 byte of rom for this. Peter |
| Topic | Author | Date |
| Counting bits | 01/01/70 00:00 | |
| RE: Counting bits | 01/01/70 00:00 | |
| RE: Counting bits | 01/01/70 00:00 | |
| RE: Counting bits | 01/01/70 00:00 | |
| RE: Counting bits | 01/01/70 00:00 | |
| RE: Counting bits | 01/01/70 00:00 | |
| RE: Counting bits | 01/01/70 00:00 | |
RE: Counting bits | 01/01/70 00:00 |



