home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 4 / AACD04.ISO / AACD / Programming / powerd / lib / PowerD / IsNum.ass < prev    next >
Encoding:
Text File  |  1999-09-21  |  166 b   |  14 lines

  1. ; (4,a7) - character
  2.  
  3.     xdef    _IsNum
  4.  
  5. _IsNum    move.l    (4,a7),d0
  6.     cmp.b    #"0",d0
  7.     blt.s    .false
  8.     cmp.b    #"9",d0
  9.     bgt.s    .false
  10. .true    moveq    #-1,d0
  11.     rts
  12. .false    moveq    #0,d0
  13.     rts
  14.