| ??? 10/19/01 07:11 Read: times |
#15863 - RE: Converting my o/p to drive LCD disp |
j.guy wrote:
" Dopes: ;set dptr to index*2 + address of dopes ;retrieve the right dptr value, then ;output the string at its location " let see you write some efficient code for your posted algorithm. it might LOOK more concise in C, but you'd be fooling yourself. if your index is less than 128 you can double it inside a byte with a shift but you still have to do a 16 bit add to the table address and then load the dptr. otherwise you have to code a 16 bit shift and a 16 bit add prior to loading the dptr. do you mean: . mov dptr,#table+(2*55) ;do msg 55 surely you don't suggest he use a compile time formula of each invoked message request... because then the table would be unneccessary because he could just use the absolute address of the message directly with a label for loading the dptr and skip all the conversion and your word table addition. you'd be better off doing a print immediate as described in http://www.8052.com/forum/rea...1&top= duh |



