]> 4ch.mooo.com Git - 16.git/blob - 16/x/mxra.asm
p16 is being worked on a bunch by me wwww [16_ca needs huge amounts of work and I...
[16.git] / 16 / x / mxra.asm
1 ;-----------------------------------------------------------\r
2 ;\r
3 ; MXRA.ASM - Row address\r
4 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
5 ;\r
6 ;-----------------------------------------------------------\r
7 WARN    PRO\r
8 INCLUDE MODEX.DEF\r
9 \r
10 PUBLIC  mxRowAddress\r
11 \r
12 MX_TEXT         SEGMENT USE16 PARA PUBLIC 'CODE'\r
13                 ASSUME cs:MX_TEXT, ds:NOTHING, es:NOTHING\r
14 \r
15 ;-----------------------------------------------------------\r
16 ;\r
17 ; Sets the row address register.\r
18 ;\r
19 ; Input:\r
20 ;       RowAddress      = row size in words\r
21 ; Output:\r
22 ;       none\r
23 ;\r
24 mxRowAddress    PROC    FAR\r
25         ARG     RowAddress:BYTE:2       = ARG_SIZE\r
26         ASSUME  ds:NOTHING\r
27         .enter  0\r
28         mov     dx, CRTC\r
29         mov     al, 13h\r
30         mov     ah, [RowAddress]\r
31         out     dx, ax\r
32         xor     ax, ax\r
33         .leave  ARG_SIZE\r
34 mxRowAddress    ENDP\r
35 \r
36 MX_TEXT         ENDS\r
37 END\r