home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource4 / 221_01 / isdigit.asm < prev    next >
Encoding:
Assembly Source File  |  1979-12-31  |  640 b   |  37 lines

  1. ;small-c V2.3
  2.  EXT ccdiv,ccmult
  3.  EXT fopen,fclose,getc,putc,putchar,getchar,rewind,gets
  4.  EXT exit
  5.  EXT CCSWITCH
  6.  EXT CCPOLL
  7.  EXT isalpha,isupper,islower,isdigit,isspace
  8.  EXT toupper,tolower
  9.  EXT strlen,reverse,left,strcmp,strcpy
  10.  EXT abs,itoa,atoi,printf
  11.  NAME isdigit
  12.  GLOBAL isdigit
  13. isdigit
  14.  LDB  3,S
  15.  SEX
  16.  PSHS D
  17.  LDD  #48
  18.  CMPD ,S++
  19.  BLE  *+7
  20.  LDD  #0
  21.  BRA  *+5
  22.  LDD  #1
  23.  PSHS D
  24.  LDB  5,S
  25.  SEX
  26.  PSHS D
  27.  LDD  #57
  28.  CMPD ,S++
  29.  BGE  *+7
  30.  LDD  #0
  31.  BRA  *+5
  32.  LDD  #1
  33.  ANDA ,S+
  34.  ANDB ,S+
  35.  RTS
  36.  END
  37.