home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Unsorted BBS Collection
/
thegreatunsorted.tar
/
thegreatunsorted
/
programming
/
asm_programming
/
SOURCES.ZIP
/
PRINT.ASM
< prev
next >
Wrap
Assembly Source File
|
1991-10-12
|
543b
|
38 lines
StdGrp group stdlib,stddata
stddata segment para public 'sldata'
stddata ends
;
stdlib segment para public 'slcode'
assume cs:stdgrp
;
extrn sl_putc:far
;
;
public sl_print
sl_print proc far
push bp
mov bp, sp
push ax
push es
push bx
;
les bx, 2[bp] ;Get return address
jmp short TestZero
;
PrintLoop: call sl_Putc
inc bx
TestZero: mov al, es:[bx]
cmp al, 0
jnz PrintLoop
;
inc bx
mov 2[bp], bx
pop bx
pop es
pop ax
pop bp
ret
sl_print endp
stdlib ends
end