home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / dos_ency / 5 / int14h.asm < prev    next >
Encoding:
Assembly Source File  |  1988-08-11  |  632 b   |  16 lines

  1. msg     db      'This is a test message'
  2. msg_len equ     $-msg
  3.         .
  4.         .
  5.         .
  6.         mov     bx,seg msg      ; DS:BX = address of message
  7.         mov     ds,bx
  8.         mov     bx,offset msg
  9.         mov     cx,msg_len      ; CX = length of message
  10.         mov     dx,0            ; DX = 0 for COM1
  11. L1:     mov     al,[bx]         ; get next character into AL
  12.         mov     ah,01h          ; subfunction 01H = output
  13.         int     14h             ; transfer to ROM BIOS
  14.         inc     bx              ; bump pointer to output string
  15.         loop    L1              ; and loop until all chars. sent
  16.