• Constant Strings
    I have several constant strings that I defined as follows: const u8 *Stringname = "StringContent"; At some stage if I add one more string, the uC stops working. I have more than enough code memory...
  • string constants in XDATA
    Hi, In an attempt to free some code space, I'm looking at a couple of options; a) preventing the compiler from automatically placing all string constants in the common code area (regardless of in...
  • MACRO
    Hello, May I know if the code as shown below works? -------------------------------------------- #pragma src void main(void){ #pragma asm myMacro MACRO MOV R1, #01 MOV R2, #02 MOV R3,...
  • How to make a pointer point to a constant string in RAM
    I'm using Keil3 for arm. 1\I wanna change the string's content,eg from "2007" to "2008" 2\I wanna a pointer ,not a array,to point to the string. But when I do as follows: char *ptr = "2007"; ptr...
  • ## Macro
    Hi, I am use the ## as follows #define ADC_SRV_DEV 1 #define ADCCON(dev, chan, reg) AD##dev##CON##chan##reg then when I give ADCCON(ADC_SRV_DEV, 1, bits.FORM) = 3; // this is equavalent...