1 ;-----------------------------------------------------------
\r
3 ; MXWP.ASM - Set write/read plane functions
\r
4 ; Copyright (c) 1993,1994 by Alessandro Scotti
\r
6 ;-----------------------------------------------------------
\r
13 MX_TEXT SEGMENT USE16 PARA PUBLIC 'CODE'
\r
14 ASSUME cs:MX_TEXT, ds:NOTHING, es:NOTHING
\r
16 ;-----------------------------------------------------------
\r
18 ; Sets the write plane(s).
\r
21 ; Plane = write plane(s) to set (bit 0 enables plane 0,
\r
22 ; bit 1 enables plane 1 and so on, different planes
\r
23 ; may be selected at the same time)
\r
27 mxWritePlane PROC FAR
\r
28 ARG Plane:BYTE:2 = ARG_SIZE
\r
32 and ah, 00001111b ; Mask off unused bits
\r
40 ;-----------------------------------------------------------
\r
42 ; Sets the read plane.
\r
45 ; Plane = read plane to set (0,1,2,3)
\r
49 mxReadPlane PROC FAR
\r
50 ARG Plane:BYTE:2 = ARG_SIZE
\r
55 and ah, 0000011b ; Mask off unused bits
\r