Jump to content

Determine if a string is numeric: Difference between revisions

m
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
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.