MikroC is super! I used to always say why use anything else then ASM,
and also used to code all in ASM. The feeling to loose control over the chip and the registers and not knowing what is going on when using other languages always kept me...Now I have been trying MikroC for about 2 days, and I really love it!
Anyway, my question...How can I use pointers to output a string constant?
I want something like this:
Code: Select all
const someText = "This Is Some Text";
DoSome(){
WriteToLCD(someText); // Here must be pointed to the constant
}
void main(){
DoSome();
}
and also how to declare the function 'WriteToLCD()' as in my example.
so that I can pass through the address of the textstring, and use it in my function.
I will be using a lot of texts, so I'd like to be able to put it into the ROM rather then the RAM
Thanks for any help , I am a bit newbee on C...
Regards,