| ??? 03/16/05 13:08 Read: times |
#89769 - bit based lookup table Responding to: ???'s previous message |
Now we can make a simple lookup table for the columns of this one character
I have found that it is ever so much easier to make the font tables in assembler. They are then processed by C code. Here is my way in assembler and my abandoned way in C just look at
CharH:
ds 01000001b
ds 01000001b
ds 01000001b
ds 01111111b
ds 01000001b
ds 01000001b
ds 01000001b
in assembler as compared to the C code
#define bit6 0x40
.....
#define bit0 0x01
U8 CharH[] =
{ (bit6 + bit0),
(bit6 + bit0),
(bit6 + bit0),
(bit6 + bit5 + Bit4 + bit3 + Bit2 + Bit1 + bit0),
(bit6 + bit0),
(bit6 + bit0),
(bit6 + bit0)}'51 assembler has bit oriented features, C does not (because the computer K&R used did not have bit instructions ?).
Erik |



