Showing changes from revision #1 to #2:
Added | Removed | Changed
Entry | |
---|---|
R0 | String to translate |
R2 | Flags |
Exit | |
---|---|
R0 | Value for OS_GSRead |
R1 | |
R2 | Value for OS_GSRead |
The purpose of this call is to initialise registers for use by OS_GSRead.
OS_GSInit is one of the string routines which are used by the operating system
CLI to process text strings.
This SWI is followed by repeated calls to OS_Read.
One of the advantages of these routines is that they enable the use the character ‘|’ to introduce control characters which would otherwise be difficult to enter directly from the keyboard.
OS_GSInit also returns the first non-blank character in the string. However, this is not
necessarily the same as the output from the first OS_GSRead, since OS_GSInit doesn’t
perform any expansion.