DA is for 'Define Ascii', which stores two ascii characters, as 7 bits each, in each 14-bit value. You then use table reading instructions (on those PICs which have such a thing) to read the data. This has the advantage of allowing twice as much ascii text to be stored. Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) ----- Original Message ----- From: Kevin Blain To: Sent: Tuesday, August 29, 2000 4:44 AM Subject: Re: [PIC]: MPLab - Problem with String Storage > Use DT (define table) instead of DA > not quite sure what DA does - it is probably short for DATA, which stores > the data directly. > ----- Original Message ----- > From: Werner Soekoe > To: > Sent: Tuesday, August 29, 2000 8:28 AM > Subject: [PIC]: MPLab - Problem with String Storage > > > > Hi > > > > I'm trying to store strings in program memory, using MP Lab ver 5.11.02. > My > > code contains: > > > > org 0x100 > > DA "This is 16 chars" > > DA "This is also 16 " > > DA "La la la la la " > > > > But when I compile the code, and then look at the Program Memory Window, > > it contains the following, which I assume is not correct, since I expected > a > > bunch of > > retlw instructions: > > > > 0100 2A68 goto 0x268 > > 0101 34F3 retlw 0xF3 > > 0102 1069 bcf 0x69,0x0 > > 0103 39A0 andlw 0xA0 > > 0104 18B6 btfsc 0x36,0x1 > > 0105 1063 bcf 0x63,0x0 > > 0106 3461 retlw 0x61 > > 0107 3973 andlw 0x73 > > 0108 2A68 goto 0x268 > > 0109 34F3 retlw 0xF3 > > 010A 1069 bcf 0x69,0x0 > > 010B 39A0 andlw 0xA0 > > 010C 30EC movlw 0xEC > > 010D 39EF andlw 0xEF > > 010E 1031 bcf 0x31,0x0 > > 010F 1B20 btfsc 0x20,0x6 > > 0110 2661 call 0x661 > > 0111 106C bcf 0x6C,0x0 > > 0112 30A0 movlw 0xA0 > > 0113 3661 ??? Illegal Opcode > > 0114 106C bcf 0x6C,0x0 > > 0115 30A0 movlw 0xA0 > > 0116 3661 ??? Illegal Opcode > > 0117 1020 bcf 0x20,0x0 > > > > I'm I doing something wrong? How can I resolve this problem??? > > > > Thanks! > > > > Friendly Regards, > > Werner Soekoe > > WernerS@fsl.gov.za > > > > -- > > http://www.piclist.com hint: To leave the PICList > > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu