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

 
Output of file : OUT8.ASM contained in archive : DD_IN_C.ZIP
; out8reg(port,byte)
;
; write a simple 8 bit register with interrupts off

.286

include mmap.inc

_TEXT SEGMENT BYTE PUBLIC 'CODE'
_TEXT ENDS

assume CS: _TEXT

_TEXT SEGMENT

_out8reg proc near

public _out8reg

cli
push bp
mov bp,sp ;set up base pointer
pusha ;save regs
pushf ;and flags
push es
push ds
mov dx,word ptr [bp+4] ;output register address
mov al,byte ptr [bp+6] ;byte to be output
out dx,al ;output low byte
jmp $+2
jmp $+2
pop ds ;restore registers
pop es
popf
popa
pop bp
sti
ret

_out8reg endp

_text ends
end





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