summaryrefslogtreecommitdiff
path: root/v4.0/src/DEV/SMARTDRV/LOADALL.ASM
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/SMARTDRV/LOADALL.ASM
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/SMARTDRV/LOADALL.ASM')
-rw-r--r--v4.0/src/DEV/SMARTDRV/LOADALL.ASM35
1 files changed, 35 insertions, 0 deletions
diff --git a/v4.0/src/DEV/SMARTDRV/LOADALL.ASM b/v4.0/src/DEV/SMARTDRV/LOADALL.ASM
new file mode 100644
index 0000000..0476acd
--- /dev/null
+++ b/v4.0/src/DEV/SMARTDRV/LOADALL.ASM
@@ -0,0 +1,35 @@
1BREAK <LOADALL descriptor caches>
2
3DEF_ACCESS EQU 92H
4DEF_LIMIT EQU 0FFFFH
5
6SEGREG_DESCRIPTOR STRUC
7SEG_BASE DW ?
8 DB ?
9SEG_ACCESS DB DEF_ACCESS
10SEG_LIMIT DW DEF_LIMIT
11SEGREG_DESCRIPTOR ENDS
12
13DTR_DESCRIPTOR STRUC
14DTR_BASE DW ?
15 DB ?
16 DB 0
17DTR_LIMIT DW ?
18DTR_DESCRIPTOR ENDS
19;
20; 386 Descriptor template
21;
22desc struc
23lim_0_15 dw 0 ; limit bits (0..15)
24bas_0_15 dw 0 ; base bits (0..15)
25bas_16_23 db 0 ; base bits (16..23)
26access db 0 ; access byte
27gran db 0 ; granularity byte
28bas_24_31 db 0 ; base bits (24..31)
29desc ends
30
31gdt_descriptor struc
32gdt_limit dw ?
33gdt_base_0 dw ?
34gdt_base_2 dw ?
35gdt_descriptor ends