home *** CD-ROM | disk | FTP | other *** search
/ FreeWare Collection 2 / FreeSoftwareCollection2pd199x-jp.img / ms_dos / ish / ish200s / int21.asm < prev    next >
Assembly Source File  |  1990-06-14  |  1KB  |  72 lines

  1. ;
  2. ;        ish file converter for MS-DOS  Ver 2.00 (90/3/27)
  3. ;
  4. ;
  5. ;        Copyright (c) 1986, 1987, 1989, 1990  by  M. ishizuka
  6. ;        All rights reserved.
  7. ;
  8.  
  9.  
  10.  
  11. ;-----------------------------------------------;
  12. ;                        ;
  13. ;    int21_2                    ;
  14. ;                        ;
  15. ;    INPUT :    dl (character)            ;
  16. ;    OUTPUT:    flags (NC: ok)            ;
  17. ;              (CY: error)        ;
  18. ;    ERROR :    NON                ;
  19. ;    BREAK : flags                ;
  20. ;                        ;
  21. ;-----------------------------------------------;
  22.  
  23. int21_2:    push    ax
  24.         push    bx
  25.         push    cx
  26.         push    dx
  27.         mov    byte ptr int21_2_work, dl
  28.         mov    ah, 40h
  29.         mov    bx, 2
  30.         mov    cx, 1
  31.         mov    dx, offset int21_2_work
  32.         int    21h
  33.         pop    dx
  34.         pop    cx
  35.         pop    bx
  36.         pop    ax
  37.         ret
  38.  
  39.  
  40.  
  41. ;-----------------------------------------------;
  42. ;                        ;
  43. ;    int21_9                    ;
  44. ;                        ;
  45. ;    INPUT :    dx (pointer)            ;
  46. ;    OUTPUT:    flags (NC: ok)            ;
  47. ;              (CY: error)        ;
  48. ;    ERROR : NON                ;
  49. ;    BREAK : flags                ;
  50. ;                        ;
  51. ;-----------------------------------------------;
  52.  
  53. int21_9:    push    ax
  54.         push    bx
  55.         push    cx
  56.         mov    bx, dx
  57.         xor    cx, cx
  58. int21_9_1:    cmp    byte ptr [bx], '$'
  59.         jz    int21_9_2
  60.         inc    bx
  61.         inc    cx
  62.         jmp    int21_9_1
  63.  
  64. int21_9_2:    jcxz    int21_9_3
  65.         mov    ah, 40h
  66.         mov    bx, 2
  67.         int    21h
  68. int21_9_3:    pop    cx
  69.         pop    bx
  70.         pop    ax
  71.         ret
  72.