LCASE
From MCS Wiki AVR
(Difference between revisions)
(Created page with "= <span class="f_Header">Action</span> = Converts a string in to all lower case characters. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;...") |
|||
(One intermediate revision by one user not shown) | |||
Line 52: | Line 52: | ||
The generated ASM code : (can be different depending on the micro used ) | The generated ASM code : (can be different depending on the micro used ) | ||
− | #####Z = Lcase(s) | + | <nowiki>;#####</nowiki>Z = Lcase(s) |
− | + | ||
− | + | ||
Ldi R30,$60 | Ldi R30,$60 |
Latest revision as of 21:40, 11 February 2013
Contents |
Action
Converts a string in to all lower case characters.
Syntax
Target = LCASE(source)
Remarks
Target |
The string that is assigned with the lower case string of string target. |
Source |
The source string. |
See also
ASM
The following ASM routines are called from MCS.LIB : _LCASE
The generated ASM code : (can be different depending on the micro used )
;#####Z = Lcase(s)
Ldi R30,$60
Ldi R31,$00 ; load constant in register
Ldi R26,$6D
Rcall _Lcase
Example
$regfile = "m48def.dat" ' specify the used micro $crystal = 4000000 ' used crystal frequency $baud = 19200 ' use baud rate $hwstack = 32 ' default use 32 for the hardware stack $swstack = 10 ' default use 10 for the SW stack $framesize = 40 ' default use 40 for the frame space Dim S As String * 12 , Z As String * 12 S = "Hello World" Z = Lcase(s) Print Z Z = Ucase(s) Print Z End
Languages | English • Deutsch |
---|