]> 4ch.mooo.com Git - 16.git/blob - 16/xw_/mxra.asm
code miraculously works on real hardware
[16.git] / 16 / xw_ / mxra.asm
1                 PUBLIC  MXROWADDRESS
2 MX_TEXT         SEGMENT PARA PUBLIC USE16 'CODE'
3                 ASSUME CS:MX_TEXT, DS:DGROUP, SS:DGROUP
4 MXROWADDRESS:
5         push            bp
6         mov             bp,sp
7         sub             sp,0
8         mov             dx,3d4H
9         mov             al,13H
10         mov             ah,byte ptr 6[bp]
11         out             dx,ax
12         xor             ax,ax
13         mov             sp,bp
14         pop             bp
15         retf            2
16 MX_TEXT         ENDS
17                 END