Oh, now I also get lots more errors along the lines of: Error[113] MAIN.ASM 47 : Symbol not previously defined (tablat) Error[113] MAIN.ASM 16 : Symbol not previously defined (tblptru) Error[113] MAIN.ASM 18 : Symbol not previously defined (tblptrh) Error[113] MAIN.ASM 20 : Symbol not previously defined (tblptrl) On 6/1/05, dave.w.turner@gmail.com wrote: > After replacing the skpnz with btfsc STATUS,Z and changing movfw to > movf X,w,, I tried to assembler the code. I got an error, Symbol not > previously defined (tablat). > > Am I missing something obvious, or doesn't the 18F1320 support tables? > Or do I need to setup anything else? > > > On 5/31/05, Harold Hallikainen wrote: > > Here's some stuff I did to send strings to an LCD. > > > > > > MsgToLcd macro msg > > ; Set up table pointers and send a messag to LCD > > movlw upper(msg) > > movwf tblptru > > movlw high(msg) > > movwf tblptrh > > movlw low(msg) > > movwf tblptrl > > call LcdMsg > > endm > > > > LcdMsg > > ; Put up a message pointed to by tblprt (u:h:l) > > tblrd *+ ; Read the table character to tablat, then increment tblptr > > movfw tablat ; Get the character from the table > > addlw 0 ; Test w (above may not set condition codes correctly) > > skpnz > > return ; if we just got a zero byte, exit > > call LcdPutChar ; Go put it on the LCD > > goto LcdMsg ; Go do next > > > > > > Here's a string definition: > > SignOnMessageL1 > > db " IQ512",0 ; Line 1 - Message with terminator > > > > > > And here's a call of the whole mess: > > > > msgToLcd(signOnMessageL1) > > > > > > Harold > > > > > > -- > > FCC Rules Updated Daily at http://www.hallikainen.com > > -- > > http://www.piclist.com PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > -- > > Dave > All us base are belong to you. > -- Dave All us base are belong to you. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist