summaryrefslogtreecommitdiff
path: root/v4.0/src/DEV/XMAEM/INDEOVP.MAC
diff options
context:
space:
mode:
authorGravatar Mark Zbikowski2024-04-25 21:24:10 +0100
committerGravatar Microsoft Open Source2024-04-25 22:32:27 +0000
commit2d04cacc5322951f187bb17e017c12920ac8ebe2 (patch)
tree80ee017efa878dfd5344b44249e6a241f2a7f6e2 /v4.0/src/DEV/XMAEM/INDEOVP.MAC
parentMerge pull request #430 from jpbaltazar/typoptbr (diff)
downloadms-dos-main.tar.gz
ms-dos-main.tar.xz
ms-dos-main.zip
MZ is back!HEADmain
Diffstat (limited to 'v4.0/src/DEV/XMAEM/INDEOVP.MAC')
-rw-r--r--v4.0/src/DEV/XMAEM/INDEOVP.MAC111
1 files changed, 111 insertions, 0 deletions
diff --git a/v4.0/src/DEV/XMAEM/INDEOVP.MAC b/v4.0/src/DEV/XMAEM/INDEOVP.MAC
new file mode 100644
index 0000000..3f2e213
--- /dev/null
+++ b/v4.0/src/DEV/XMAEM/INDEOVP.MAC
@@ -0,0 +1,111 @@
1COMMENT #
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
34PAGE
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
40DATAOV MACRO
41 DB 066H
42 ENDM
43
44PAGE
45; ADDROV - Create a prefix for an instruction so that it uses 32 bit addresses
46; instead of 16 bit addresses.
47
48ADDROV MACRO
49 DB 067H
50 ENDM
51
52PAGE
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
61SEGOV 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