Category : C Source Code
Archive   : MIKECOMM.ZIP
Filename : RTS.ASM

Output of file : RTS.ASM contained in archive : MIKECOMM.ZIP

include subfx.h

; Mike Dumdei, 6 Holly Lane, Texarkana TX 75503

; ASYNC_RTS -- Sets or clears 'request to send' based on passed flag. Returns
; R_NOPORT if port invalid else returns R_OK.
begseg COMM_TEXT
publicproc _async_rts
push bp
mov bp,sp
push si ;stack frame setup
call __ck_port_arg ;ck if valid, load pointers
jz rts_exit ;bad arg if ZR flag set
mov dx,COM_BASE
add dx,4 ;xFC)modem control register
in al,dx
cmp Flag,OFF
jne rts_on
and al,n B_RTS ;clear RTS bit
jmp s snd_MCRbyte ;exits through DTR proc
or al,B_RTS ;set RTS bit
out dx,al ;send new mask to UART
xor ax,ax ;returning R_OK
pop si
pop bp
ret ;restore regs and exit
_async_rts endp

endseg COMM_TEXT

  3 Responses to “Category : C Source Code
Archive   : MIKECOMM.ZIP
Filename : RTS.ASM

  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: