Category : OS/2 Files
Archive   : DD_IN_C.ZIP
Filename : IOSEG.ASM

 
Output of file : IOSEG.ASM contained in archive : DD_IN_C.ZIP
; Version 1.0 16 December 1991
; IOPL segment for VDD I/O
;
; by: Steve Mastrianni
; 290 Brookfield Street
; South Windsor, CT 06074
; (203) 644-0723
;
;
PUBLIC _outp
PUBLIC _inp

.386

DGROUP GROUP _DATA
_DATA SEGMENT WORD PUBLIC 'DATA'
_DATA ENDS

_IOSEG segment word public 'CODE'

assume CS: _IOSEG, DS: DGROUP, SS: DGROUP
;
_inp proc far
;
push bp ;set up stack frame
mov bp,sp ;save bp
push dx ;save dx
mov dx,[bp+6] ;get port address
in ax,dx ;do input
pop dx ;restore regs
pop bp ;return in ax
ret 2 ;remove from IOPL stack
;
_inp endp

_outp proc far
;
push bp ;set up stack frame
mov bp,sp ;save it
push ax ;save ax
push dx ;and dx
mov ax,[bp+6] ;get data
mov dx,[bp+8] ;get port
out dx,al ;do output
pop dx ;restore regs
pop ax
pop bp
ret 4 ;remove off local stack
;
_outp endp

_IOSEG ends
end


  3 Responses to “Category : OS/2 Files
Archive   : DD_IN_C.ZIP
Filename : IOSEG.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/