home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / caway349.zip / SOURCE / ALL / CW / PRINT.ASM < prev   
Assembly Source File  |  1994-06-14  |  460b  |  31 lines

  1. ;==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==
  2. StringPrint    proc    near
  3. ;
  4. ;Print characters on the screen.
  5. ;
  6. ;On Entry:-
  7. ;
  8. ;DS:EDX    - String (0 terminated)
  9. ;
  10. ;ALL registers preserved.
  11. ;
  12.     pushm    eax,ebx,ecx,edx,esi,edi,ebp
  13.     mov    esi,edx
  14. @@0:    mov    al,[esi]
  15.     inc    esi
  16.     or    al,al
  17.     jz    @@9
  18.     push    esi
  19.     mov    dl,al
  20.     mov    ah,2
  21.     int    21h
  22.     pop    esi
  23.     jmp    @@0
  24. @@9:    popm    eax,ebx,ecx,edx,esi,edi,ebp
  25.     ret
  26. StringPrint    endp
  27.  
  28.  
  29.  
  30. 
  31.