UCASE

Top  Previous  Next

Action

Converts a string in to all upper case characters.

 

 

Syntax

Target = UCASE(source)

 

 

Remarks

Target

The string that is assigned with the upper case string of string target.

Source

The source string.

 

 

See also

LCASE

 

 

ASM

The following ASM routines are called from MCS.LIB : _UCASE

X must point to the target string, Z must point to the source string.

The generated ASM code : (can be different depending on the micro used )

;##### Z = Ucase(s)

Ldi R30,$60

Ldi R31,$00 ; load constant in register

Ldi R26,$6D

Rcall _Ucase

 

 

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