2003-04-10 08:00 AM
Adding text in your code (Assembler)
2003-04-10 03:52 AM
Thanks Spen!
And if I want to make four different strings one behind the other: is this right or not: +seg .firm -b 0xf000 -n .firm # special const section +seg .autor -a .firma -n .autor # special const +seg .version -a .autor -n .version # special const +seg .kunde -a .version -n .kunde # special const +seg .text -n .text -a .kunde # program code +seg .const -a .text # constants follow code #pragma section const {firm} const char * const pString = ''testfirm''; #pragma section const {autor} const char * const pString = ''Ampel''; #pragma section const {version} const char * const pString = ''1.0.0.''; #pragma section const {kunde} const char * const pString = ''ST Micro''; #pragma section const {} ??? regards2003-04-10 07:59 AM
All you would have to do is:
+seg .str -b 0xf000 -n .str # special const section +seg .text -n .text -a .str # program code +seg .const -a .text # constants follow code #pragma section const {str} const char * const pData[] = { ''testfirm'', ''Ampel'', ''1.0.0.'', ''ST Micro'' }; or why not const char* pString = ''testfirm Ampel 1.0.0. ST Micro''; #pragma section const {} Regards Spen2003-04-10 08:00 AM
All you would have to do is:
+seg .str -b 0xf000 -n .str # special const section +seg .text -n .text -a .str # program code +seg .const -a .text # constants follow code #pragma section const {str} const char * const pData[] = { ''testfirm'', ''Ampel'', ''1.0.0.'', ''ST Micro'' }; or why not const char* pString = ''testfirm Ampel 1.0.0. ST Micro''; #pragma section const {} Regards Spen