The Conversion Collection contains macros and subroutines for converting between different data types. This currently includes macros for converting a:
- numeric value to an integer string
- integer string to a numeric value
- numeric value to a hexadecimal string
- hexadecimal string to a numeric value
- numeric value to a binary string
- binary string to a numeric value
In future revisions, other conversions will include:
- string type conversions (preceding length byte, null-terminated, etc.)
- string to array
- array to string
Note that some of these subroutines are redundant due to the fact that some conversions are already available in the ROM. However, for the sake of understanding how these conversions work, they are provided here if for nothing more than illustration.