We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have the following code: strcat(tbuf,"\r\nSH B = "); My program memory model is small so I can re-locate the code in any sector. Unfortunately "\r\nSH B = " is fixed at an absolute address. I can make it a variable, but I have tons of these messages already coded. Is there a way to direct the string functions to use the small memory model as well?
I'm not quite sure what you want to achieve. You wrote: My program memory model is small It means that all the code is near and all the data is near as well unless you explicitly specify otherwise. That is, strings are near too. You can relocate near data to a different segment and adjust DPPx registers accordingly. Read the compiler manual, section "Advanced Programming Techniques, Near Pointers" and the C166 instruction set manual, section "Addressing Modes". - Mike