home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FreeWare Collection 2
/
FreeSoftwareCollection2pd199x-jp.img
/
ms_dos
/
ish
/
ish200s
/
int21.asm
< prev
next >
Wrap
Assembly Source File
|
1990-06-14
|
1KB
|
72 lines
;
; ish file converter for MS-DOS Ver 2.00 (90/3/27)
;
;
; Copyright (c) 1986, 1987, 1989, 1990 by M. ishizuka
; All rights reserved.
;
;-----------------------------------------------;
; ;
; int21_2 ;
; ;
; INPUT : dl (character) ;
; OUTPUT: flags (NC: ok) ;
; (CY: error) ;
; ERROR : NON ;
; BREAK : flags ;
; ;
;-----------------------------------------------;
int21_2: push ax
push bx
push cx
push dx
mov byte ptr int21_2_work, dl
mov ah, 40h
mov bx, 2
mov cx, 1
mov dx, offset int21_2_work
int 21h
pop dx
pop cx
pop bx
pop ax
ret
;-----------------------------------------------;
; ;
; int21_9 ;
; ;
; INPUT : dx (pointer) ;
; OUTPUT: flags (NC: ok) ;
; (CY: error) ;
; ERROR : NON ;
; BREAK : flags ;
; ;
;-----------------------------------------------;
int21_9: push ax
push bx
push cx
mov bx, dx
xor cx, cx
int21_9_1: cmp byte ptr [bx], '$'
jz int21_9_2
inc bx
inc cx
jmp int21_9_1
int21_9_2: jcxz int21_9_3
mov ah, 40h
mov bx, 2
int 21h
int21_9_3: pop cx
pop bx
pop ax
ret