Showing changes from revision #0 to #1:
Added | Removed | Changed
Entry | |
---|---|
R0 | Base (2-36 Default 10) + flags |
R1 | Pointer to string to convert |
R2 | Maximum value, if bit 29 set |
Exit | |
---|---|
R0 | Preserved |
R1 | Pointer to terminator char |
R2 | Value converted |
The purpose of this call is to convert a string into an integer.
If string starts with &, base 16 is assumed. If string starts with base_, this base is used. If no base is given in string, the base in R0 is used, or 10 if that base is invalid.
The terminating character in the string to convert is the first character that is inconsistent with the base being used. e.g. F in base 10, 2 in base 2, etc.