home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Unsorted BBS Collection
/
thegreatunsorted.tar
/
thegreatunsorted
/
programming
/
asm_programming
/
PDOSSTR.RT
< prev
next >
Wrap
Text File
|
1993-01-09
|
790b
|
36 lines
public _putdosstr
;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
; Print ASCIIZ string to DOS
; In:
; EDX -> ASCIIZ string in low mem
; Out:
; None
;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
_putdosstr:
push eax
push ecx
push edi
mov ecx,0ffffffffh
xor al,al
mov edi,edx
repnz scasb
dec edi
mov byte ptr [edi],'$'
mov ecx,_code32a
add ecx,edx
mov eax,ecx
and ax,0fh
shr ecx,4
mov v86r_ds,cx
mov v86r_dx,ax
mov v86r_ah,9
mov al,21h
int 30h
mov byte ptr [edi],0
pop edi
pop ecx
pop eax
ret