home *** CD-ROM | disk | FTP | other *** search
-
-
- page 66, 120
- title DBASE III+ Com Port Handler V1.0
- subttl By Carl R. Weber
-
- IF1
- %out Pass 1
- ENDIF
- IF2
- %out Pass 2
- ENDIF
-
- ;======================================
- ;
- ; output a DBASE III String to the com port
- ;
- ; By C.R. Weber
- ;
- ;======================================
-
-
- comline equ 0000h
-
-
- cseg segment
- assume cs:cseg
- outport proc far
- push dx
- push bx
- push ax
-
- cmp bx, 0
- jz eout ;no data if zero
-
- mov dx, comline ;default comline
-
- oloop label near
- cmp byte ptr [bx],0 ;EOS yet
- jz eout
- mov al, byte ptr [bx] ;else get character
- inc bx ;point to next character
- call chout ;output it
- jmp short oloop ;and again
-
- eout label near
- pop ax ;return registers and return (FAR)
- pop bx
- pop dx
- ret
- outport endp
-
- chout proc near
- mov ah, 1 ;use bios com out procedure
- int 14h
- ret
- chout endp
-
-
- cseg ends
- end ;end of this assembly routine
-