Category : Assembly Language Source Code
Archive   : ASM-SUBR.ZIP
Filename : STDMESSO

 
Output of file : STDMESSO contained in archive : ASM-SUBR.ZIP
;-------------------------routine begins--------------------------+
; ROUTINE TO SEND MESSAGE TO STANDARD OUTPUT
;
; FUNCTION: This routine sends a message out through the standard
; output device
; INPUT: Upon input DS:SI points to the message. The message ter-
; minates with an ASCII zero.
; OUTPUT: The individual characters of the message are output
; through the standard output device.
; REGISTERS USED: No registers are modified. SI is used to
; point to the input.
; SEGMENTS REFERENCED: The data segment must contain the message.
; ROUTINES CALLED: stdout
; SPECIAL NOTES: None
;
stdmessout proc far
push si ; save registers
push ax
;
stdmessout1:
mov al,[si] ; get byte
inc si ; point to next byte
cmp al,0 ; done ?
je stdmessoutexit ; if so, exit.
call stdout ; send it out
jmp stdmessout1 ; loop for more
;
stdmessoutexit:
pop ax ; restore registers
pop si
ret
stdmessout endp
;-------------------------routine ends---------------------------+


  3 Responses to “Category : Assembly Language Source Code
Archive   : ASM-SUBR.ZIP
Filename : STDMESSO

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/