/**************************************************************** Dependencies: xc.h, libpic30.h, stdio.h Processor: dsPIC33FJ256GP710 Complier: XC16 v1.21 Debugger: Simulator ****************************************************************/ #include <xc.h> #include <stdio.h> #include <libpic30.h> __pack_upper_byte char string_packed[] = "This is a string."; const char string_un_packed[] = "This is a string."; int main() { char array1[40]; if (string_packed[0]) _memcpy_packed(array1, string_packed, sizeof(string_packed)); printf("%s",array1); while(1); }