]> wirehaze git hosting - MS-DOS.git/blob - v4.0/src/DEV/XMAEM/INDEOVP.MAC

wirehaze git hosting

MZ is back!
[MS-DOS.git] / v4.0 / src / DEV / XMAEM / INDEOVP.MAC
1 COMMENT #
2 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3 * *
4 * MODULE NAME : INDEOVP *
5 * *
6 * 5669-196 (C) COPYRIGHT 1988 Microsoft Corp. *
7 * *
8 * DESCRIPTIVE NAME: Override prefix macros *
9 * *
10 * STATUS (LEVEL) : Version (0) Level (1.0) *
11 * *
12 * FUNCTION : DATAOV - Creates a prefix so that the next instruction *
13 * accesses data twice as wide as it normally would.*
14 * Bytes go to words, and words go to double words. *
15 * ADDROV - Creates a prefix so that the next instruction *
16 * uses 32 bit addresses instead of 16 bit. *
17 * SEGOV - Creates a segment override prefix for the next *
18 * instruction. *
19 * *
20 * MODULE TYPE : MAC *
21 * *
22 * REGISTER USAGE : 80286 Standard *
23 * *
24 * CHANGE ACTIVITY : *
25 * *
26 * $MAC(INDEOVP) COMP(LOAD) PROD(3270PC) : *
27 * *
28 * $D0=D0004700 410 870604 D : NEW FOR RELEASE 1.1 *
29 * $P1=P0000311 410 870804 D : RENAME MODULE'S LIBRARY FILE TYPE TO "MAC" *
30 * *
31 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
32 #
33
34 PAGE
35 ; DATAOV - Create a prefix for an instruction so that it accesses data twice
36 ; as wide as it normally would have. If the instruction was to access
37 ; bytes then it will access words. If it was to access words then it
38 ; will access double words (32 bits).
39
40 DATAOV MACRO
41 DB 066H
42 ENDM
43
44 PAGE
45 ; ADDROV - Create a prefix for an instruction so that it uses 32 bit addresses
46 ; instead of 16 bit addresses.
47
48 ADDROV MACRO
49 DB 067H
50 ENDM
51
52 PAGE
53 ; SEGOV - Segment Prefix Overrides
54 ; This macro will create segment prefix overrides for all the segment registers
55 ; on the 80386. It will also create prefixes for the data override and address
56 ; override as listed in the DATOV and ADDROV macros above.
57 ;
58 ; Syntax: SEGOV ES | CS | SS | DS | FS | GS | DATA | ADDRESS
59 ;
60
61 SEGOV MACRO SR
62 IFIDN <&SR>,<ES>
63 DB 026H
64 ENDIF
65 IFIDN <&SR>,<es>
66 DB 026H
67 ENDIF
68 IFIDN <&SR>,<CS>
69 DB 02EH
70 ENDIF
71 IFIDN <&SR>,<cs>
72 DB 02EH
73 ENDIF
74 IFIDN <&SR>,<SS>
75 DB 036H
76 ENDIF
77 IFIDN <&SR>,<ss>
78 DB 036H
79 ENDIF
80 IFIDN <&SR>,<DS>
81 DB 03EH
82 ENDIF
83 IFIDN <&SR>,<ds>
84 DB 03EH
85 ENDIF
86 IFIDN <&SR>,<FS>
87 DB 064H
88 ENDIF
89 IFIDN <&SR>,<fs>
90 DB 064H
91 ENDIF
92 IFIDN <&SR>,<GS>
93 DB 065H
94 ENDIF
95 IFIDN <&SR>,<gs>
96 DB 065H
97 ENDIF
98 IFIDN <&SR>,<DATA>
99 DB 066H
100 ENDIF
101 IFIDN <&SR>,<data>
102 DB 066H
103 ENDIF
104 IFIDN <&SR>,<ADDRESS>
105 DB 067H
106 ENDIF
107 IFIDN <&SR>,<address>
108 DB 067H
109 ENDIF
110 ENDM
111