home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol12n18.zip / ECHO.ZIP / ECH.SCR < prev    next >
Text File  |  1992-11-22  |  545b  |  19 lines

  1. N ECH.COM
  2. A 100
  3. MOV     SI,0082    ; SI points to command tail
  4. SUB     CH,CH      ; zero out CH
  5. MOV     CL,[SI-02] ; character count in CL
  6. JCXZ    0113       ; no command tail?  skip it!
  7. DEC     CX         ; deduct one for the skipped space
  8. LODSB              ; get a char into AX
  9. XCHG    DX,AX      ; get the char in DL
  10. MOV     AH,02      ; select write character function
  11. INT     21         ; call INT 21h
  12. LOOP    010B       ; go back for the next character
  13. INT     20         ; call INT 20h (terminate process)
  14.  
  15. RCX
  16. 15
  17. W
  18. Q
  19.