<<< The atod Scan | Index | The atoi and itoa Example >>> |
The
atoi (ASCII to integer), and
itoa (integer to ASCII)
macros are the word-length (16-bit) versions of atod and dtoa.
The atoi macro scans a string of characters and produces the corresponding word-length 2's complement value in AX.
The itoa macro takes the 2's complement value stored in a word-length source and produces a string of exactly six characters representing this value in decimal format.
The macros are useful when dealing with values in the range
-32,768 to 32,767.
<<< The atod Scan | Index | The atoi and itoa Example >>> |