home *** CD-ROM | disk | FTP | other *** search
/ FreeWare Collection 2 / FreeSoftwareCollection2pd199x-jp.img / ms_dos / ish / ish200s / ish200s.lzh / INT21.H < prev    next >
Text File  |  1990-03-27  |  2KB  |  90 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    macro
  24.         call    int21_2
  25.         endm
  26.  
  27.  
  28.  
  29. ;-----------------------------------------------;
  30. ;                        ;
  31. ;    @@int21_8                ;
  32. ;                        ;
  33. ;    INPUT :    NON                ;
  34. ;    OUTPUT:    al (character)            ;
  35. ;        flags (NC: ok)            ;
  36. ;              (CY: error)        ;
  37. ;    ERROR : error_29            ;
  38. ;    BREAK : flags, ah            ;
  39. ;                        ;
  40. ;-----------------------------------------------;
  41.  
  42. @@int21_8    macro
  43.         push    bx
  44.         push    cx
  45.         push    dx
  46.         mov    ax, 4400h
  47.         mov    bx, 2
  48.         int    21h
  49.         jc    error_29
  50.         xor    dh, dh
  51.         push    dx
  52.         or    dl, 20h
  53.         mov    ax, 4401h
  54.         mov    bx, 2
  55.         int    21h
  56.         jc    error_29
  57.         mov    ah, 3fh
  58.         mov    bx, 2
  59.         mov    cx, 1
  60.         mov    dx, offset int21_8_work
  61.         int    21h
  62.         pop    dx
  63.         mov    ax, 4401h
  64.         mov    bx, 2
  65.         int    21h
  66.         jc    error_29
  67.         mov    al, byte ptr int21_8_work
  68.         pop    dx
  69.         pop    cx
  70.         pop    bx
  71.         endm
  72.  
  73.  
  74.  
  75. ;-----------------------------------------------;
  76. ;                        ;
  77. ;    @@int21_9                ;
  78. ;                        ;
  79. ;    INPUT :    dx (pointer)            ;
  80. ;    OUTPUT:    flags (NC: ok)            ;
  81. ;              (CY: error)        ;
  82. ;    ERROR :    NON                ;
  83. ;    BREAK : flags                ;
  84. ;                        ;
  85. ;-----------------------------------------------;
  86.  
  87. @@int21_9    macro
  88.         call    int21_9
  89.         endm
  90.