Pleas dont panic. its just a great big table and hes split it onto multiple lines. it all gets assembled as a string of RETLWs. alice > PICers .. Myke, Tony et al > > OK, I *thought* I got a handle on the ol'DT table as used with a > single line. ie > > addwf PCL, > dt '0123456789ABCDEF',0 > like we talked about before. > > But then I look at other code and I see MULTIPLE DT's called by the > one addwf instruction. > Take Steve Lawther's code (tstdmlcd.asm) for a T6963 graphics LCd > interface for instance :- > > getwelcomebyte > org 0x2FE > movwf tempone > movlw 0x03 > movwf PCLATH > movf countno, W > ;retlw 0xAA > addwf PCL, F > dt 0x82, 0xFE, 0x80, 0x80, 0x7C ;, 0x1F, 0x25, > 0x2C ;0 - 7 > dt 0x82, 0xFE, 0x80, 0x80, 0x7C ;, 0x1F, 0x25, > 0x2C ;0 - 7 > > dt 0x82, 0x80, 0x80, 0x80, 0x82 ;, 0x50, 0x56, > 0x5C ;8 - 15 > dt 0x82, 0x80, 0x80, 0x80, 0x82 ;, 0x50, 0x56, > 0x5C ;8 - 15 > > dt 0x82, 0x80, 0x80, 0x80, 0x82 ;, 0x7E, 0x83, > 0x88 ;16 - 23 > dt 0x82, 0x80, 0x80, 0x80, 0x82 ;, 0x7E, 0x83, > 0x88 ;16 - 23 > .... and lots more > > AAaargh ! What's he doing with all these tables?? Your addwf jump is > only gonna access the one DT statement isn't it? What's with the hex > bytes & comma after the ; ? > > I figured if i wanted to select different messages I'd haver to call > separate DT tables, like so :- > > List1 addwf PCL,1 > DT 'message #1' > > List2 addwf PCL,1 > DT 'message # 2' & etc > > So this is NOT so? > > Ian > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.