home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_02_02 / 2n02069a < prev    next >
Text File  |  1990-12-18  |  588b  |  41 lines

  1. ;
  2. ; start.asm
  3. ; written by David A. Nye 
  4. ; Released to the Public Domain.
  5. ;
  6. ; Assembler used: Borland's TASM.
  7. ;
  8. ; Assembly instructions:
  9. ;   tasm start
  10. ;   tlink start
  11. ;   exe2bin start.exe
  12. ;   ren start.bin start.com
  13. ;
  14.  
  15. ideal
  16. model tiny
  17. codeseg
  18. org 100h
  19.  
  20. start:
  21.     mov ax,cs
  22.     mov ds,ax
  23.     mov ah,2
  24.     int 16h
  25.     and al,8
  26.     jz exit
  27.     mov dx, offset message
  28.     mov ah,9
  29.     int 21h
  30.     mov ah,1
  31.     int 21h
  32.     sub al,'0'
  33. exit:
  34.     mov ah,4ch
  35.     int 21h
  36.  
  37. message:
  38.     db 'Enter digit for alternate AUTOEXEC.BAT functions: $'
  39.  
  40. end start
  41.