$BIGSTRINGS
From MCS Wiki AVR
(Difference between revisions)
(Created page with "<div style="height: 755px" class="nonscroll" id="idcontent"><div id="innerdiv"> = <span class="f_Header">Action</span><br/> = Instruct the compiler to use big strings. <span...") |
|||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | <div | + | <div id="idcontent"><div id="innerdiv"> |
= <span class="f_Header">Action</span><br/> = | = <span class="f_Header">Action</span><br/> = | ||
Line 22: | Line 22: | ||
When a longer string is needed, the compiler can not use bytes for passing the length. A word is needed to hold the length. | When a longer string is needed, the compiler can not use bytes for passing the length. A word is needed to hold the length. | ||
− | The $BIGSTRINGS directive will include the bigstrings.lbx and will handle all string routines different when parameters are passed | + | The $BIGSTRINGS directive will include the bigstrings.lbx and will handle all string routines different when parameters are passed which influence the length. |
| | ||
− | The alternative library | + | The alternative library contains modified routines for code not compatible with big strings. |
− | + | | |
− | + | The following string routines are supported: | |
− | + | [[ASC]], | |
− | <span style="font-family: 'Arial'; | + | [[CHARPOS]] |
+ | |||
+ | [[GET]] | ||
+ | |||
+ | [[INPUT|INPUT LCD , INPUT SERIAL]] | ||
+ | |||
+ | [[INSTR]] | ||
+ | |||
+ | [[LCASE]] | ||
+ | |||
+ | [[LEFT]] | ||
+ | |||
+ | [[LEN]] | ||
+ | |||
+ | [[MID]] | ||
+ | |||
+ | [[RIGHT]] | ||
+ | |||
+ | [[PUT]] | ||
+ | |||
+ | [[UCASE]] | ||
+ | |||
+ | <span style="font-family: 'Arial'; color: #000000"> </span> | ||
= <span class="f_Header">See also</span><br/> = | = <span class="f_Header">See also</span><br/> = | ||
Line 46: | Line 68: | ||
= <span class="f_Header">Example</span><br/> = | = <span class="f_Header">Example</span><br/> = | ||
+ | <span style="font-family: 'Courier New'; font-weight: bold; color: #000080">$BIGSTRINGS</span> | ||
+ | <span style="font-family: 'Courier New'; font-weight: bold; color: #000080"></span> | ||
− | <span style="font-family: 'Courier New'; font-weight: bold; color: #000080"> | + | <span style="font-family: 'Courier New'; font-weight: bold; color: #000080"></span> |
+ | |||
+ | |||
+ | |||
+ | <span style="font-family: 'Courier New'; font-weight: bold; color: #000080">{{Languages}}</span> | ||
</div></div> | </div></div> | ||
+ | [[Category:BASCOM Language Reference]] |
Latest revision as of 20:25, 15 June 2015
Contents |
Action
Instruct the compiler to use big strings.
Syntax
$BIGSTRINGS
Remarks
By default each string has a maximum length of 254 bytes. A null character is used to mark the end of a string.
When a longer string is needed, the compiler can not use bytes for passing the length. A word is needed to hold the length.
The $BIGSTRINGS directive will include the bigstrings.lbx and will handle all string routines different when parameters are passed which influence the length.
The alternative library contains modified routines for code not compatible with big strings.
The following string routines are supported:
ASC,
See also
Example
$BIGSTRINGS
Languages | English • Deutsch |
---|