Category : C Source Code
Archive   : COM_232.ZIP
Filename : STRIP.ASM

 
Output of file : STRIP.ASM contained in archive : COM_232.ZIP

title SET BIT STRIPPING MASK
include subfx.h

; Mike Dumdei, 6 Holly Lane, Texarakana TX 75503

;**************************************************************************
; ASYNC_STRIP -- Sets the bit stripping mask that is ANDed with incoming
; characeters. Returns R_OK if successful else R_NOPORT.
;**************************************************************************
begseg COMM_TEXT
publicproc _async_strip
push bp
mov bp,sp
push si ;stack frame setup
call __ck_port_arg ;ck if valid, load pointers
jz strip_exit ;bad arg if ZR flag set
mov al,StripMask
mov STRIP_MASK,al ;set the new bit stripping mask
xor ax,ax ;AH=0, AL=MSR value
strip_exit:
pop si
pop bp
ret ;restore regs and exit
_async_strip endp

endseg COMM_TEXT
end


  3 Responses to “Category : C Source Code
Archive   : COM_232.ZIP
Filename : STRIP.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: http://www.os2museum.com/wp/mtswslnk/