Kresho @ Advanced Technika wrote: > movlw Fosc/(16*9600) - 1 > movwf SPBRG > > and i would like to display the numerical value of (Fosc/(16*9600) > - 1) in the listing. I have tried > > messg Fosc/(16*9600) - 1 > > but that only displays "Fosc/(16*9600) - 1". Is there some way of doing > this? No, but the value DOES show in the hex opcodes to the left of the assembly mnemonics in the list file. > Also, is there a way of concatenating strings for the message > display, so i could ideally display something like: > > messg "The SPBRG value is " & Fosc/(16*9600) - 1 > > to give "The SPBRG value is xxx" No, can't do that, either. -Andy === Andrew Warren - fastfwd@ix.netcom.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics