Comment Comment by joezydeco 8 bit input? Use a pre-generated lookup table. Store it in ROM.The table deference will take 1 or 2 operations instead of the AND/SHIFT/PUSH/AND/SHIFT/POP/OR described in the answer. parent joezydeco 8 years ago
The table deference will take 1 or 2 operations instead of the AND/SHIFT/PUSH/AND/SHIFT/POP/OR described in the answer.