home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
PPPBCKP
/
SRC
/
SRC15A68.ZIP
/
WATTSRC.ZIP
/
ELIB
/
OUTSN.ASM
< prev
next >
Wrap
Assembly Source File
|
1994-11-28
|
1KB
|
69 lines
PAGE 66,132
;
;
;
;
;
;
;
;
; outsn.asm
;
; print a string up to a certain len to stdio
;
;
; Usage :
; outsn( char far *s, int n)
;
; (c) 1990 University of Waterloo,
; Faculty of Engineering,
; Engineering Microcomputer Network Development Office
;
; version
;
; 0.1 7-Nov -1990 E. P. Engelke
;
;
include masmdefs.hsm
include model.hsm
codedef OUTSN
datadef
cextrn outch
cstart OUTSN
cpublic outsn
push DS
lds SI, +@AB [BP]
mov CX, +@AB+4[BP]
@1: lodsb
or AL, AL
jz @2
cmp AL, 0dh ; convert 0d to 0d 0a
jnz @3
push ax
ccall outch
pop ax
; mov DL, AL
; mov AX, 020ah
; int 21h
@3: push ax
ccall outch
pop ax
; mov DL, AL
; mov AH, 2
; int 21h
loop @1
@2: pop DS
creturn outsn
cend OUTSN
end