| ??? 01/05/03 23:30 Read: times |
#35728 - RE: 4 -> 16 ASM routine needed |
Yes, I think Mike posted this code:
lookup: db 01h, 02h, 04h, 08h, 10h, 20h, 40h, 80h mov dptr,#lookup mov a,P0 anl a,#7H movc a,@a+dptr jb P0.3,setp2 mov P1,a mov P2,#0 sjmp done setp2: mov P1,#0 mov P2,a done: My debugger counts 11 cycles. |



