summaryrefslogtreecommitdiff
path: root/v4.0/src/CMD/CHKDSK/CHKMACRO.INC
diff options
context:
space:
mode:
Diffstat (limited to 'v4.0/src/CMD/CHKDSK/CHKMACRO.INC')
-rw-r--r--v4.0/src/CMD/CHKDSK/CHKMACRO.INC105
1 files changed, 105 insertions, 0 deletions
diff --git a/v4.0/src/CMD/CHKDSK/CHKMACRO.INC b/v4.0/src/CMD/CHKDSK/CHKMACRO.INC
new file mode 100644
index 0000000..f6ba6ac
--- /dev/null
+++ b/v4.0/src/CMD/CHKDSK/CHKMACRO.INC
@@ -0,0 +1,105 @@
1
2BREAK MACRO subtitle
3 SUBTTL subtitle
4 PAGE
5ENDM
6
7
8;
9;******************************************************************************
10; Message Macro Definitions
11;******************************************************************************
12;
13
14 EXTRN Display_Interface:near
15
16
17;-----------------------------------------------------------------------------
18
19Message macro Message_Name ; ;AN000;
20 ;
21 mov dx,offset dg:Message_Name ; ;AN000;
22 call Display_Interface ; ;AN000;
23 ;
24 endm ; ;AN000;
25
26;-----------------------------------------------------------------------------
27
28Parse_Message macro ; ;AN000;
29
30 ;
31 push ds
32 mov dx,dg
33 mov ds,dx
34 mov word ptr Parse_Error_Msg,ax ; ;AN000;
35 mov dx,offset dg:Parse_Error_Msg ; ;AN000;
36 call Display_Interface ; ;AN000;
37 pop ds ;
38 endm ; ;AN000;
39
40;-----------------------------------------------------------------------------
41
42Extended_Message macro ; ;AN000;
43 ;
44
45 push ds
46 mov dx,dg
47 mov ds,dx
48 mov word ptr Extended_Error_Msg,ax ; ;AN000;
49 mov dx,offset dg:Extended_Error_Msg ; ;AN000;
50 call Display_Interface ; ;AN000;
51 pop ds
52 endm ; ;AN000;
53;
54;*****************************************************************************
55; General Macro's
56;*****************************************************************************
57;
58
59Procedure macro Proc_Name,Seg_Name ; ;AN000;
60 ;
61Public Proc_Name ; ;AN000;
62Proc_Name proc ; ;AN000;
63
64 endm ; ;AN000;
65;-----------------------------------------------------------------------------
66
67DOS_Call macro Function ; ;AN000;
68 ;
69 mov ah,Function ; ;AN000;
70 int 21h ; ;AN000;
71 ;
72 endm ; ;AN000;
73
74;-----------------------------------------------------------------------------
75
76Popff macro
77
78Assume cs:DG
79
80 jmp $+3
81 iret
82 push cs
83 call $-2
84
85Assume cs:code
86
87 endm
88
89;-----------------------------------------------------------------------------
90
91Set_Data_Segment macro
92
93 push ax
94 mov ax,dg ;Point to data segment
95 mov ds,ax ;
96 push ds
97 pop es
98 pop ax
99
100 .LALL
101 assume ds:dg,es:dg
102 .XALL
103 endm
104
105 \ No newline at end of file