Determine if a string is numeric: Difference between revisions
Determine if a string is numeric (view source)
Revision as of 15:33, 26 September 2021
, 2 years ago→{{header|6502 Assembly}}: typo fix
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) m (→{{header|6502 Assembly}}: typo fix) |
||
Line 11:
For this program, a valid numeric string literal consists of only numbers (ascii $30-$39), up to one <i>leading</i> minus sign, and no more than one decimal point. Anything else, including the null string, is considered non-numeric.
Macros used (VASM syntax):
<pre>
Line 17:
lda #<\addr
sta \regs
lda #>\addr
sta \regs+1
endm
|