| ??? 10/19/01 15:01 Read: times |
#15871 - RE: Converting my o/p to drive LCD disp |
Without org'ing the dopes table to an address muiltiple of 256, which is what anyone using such a table would do, it is still simple - not guaranteeing this syntax though.
; call with string # (0-255) in acc ; returns dptr, acc trashed CLR C MOV DPTR,#dopes ; starting address RLC A ; is >= 128 ? JNC duh1 ; no INC DPH ; yes, add 128*2 to dptr duh1: ADD A,DPL ; A = DPL + (index&127) * 2 MOD DPL,A JNC duh2 ; if carry from dpl, add to dph INC DPH duh2: ; now have string address in dptr, ;call output string from @dptr subroutine |



