| ??? 01/05/03 12:40 Read: times |
#35671 - RE: Competition time ! 11instruct reset |
This one resets too.but 2 more instruct.so
far can't manage 9 instructions. ;assuming p0.0-p0.3 mov dptr,#lookup;#1 mov a,p0;#2 clr acc.3;#3 movc a,@a+dptr;#4 jb p0.3,goto_p2;#5 mov p1,a;#6 mov p2,#00h ;#7 ret;#8 goto_p2: mov p2,a ;#9 mov p1,#00h;#10 ret;#11 ;8 bytes lookup: db 01h,02h,04h,08h,10h,020h,040h,080h Pranav |



