summaryrefslogtreecommitdiff
path: root/v4.0/src/CMD/EXE2BIN/E2BMACRO.INC
diff options
context:
space:
mode:
Diffstat (limited to 'v4.0/src/CMD/EXE2BIN/E2BMACRO.INC')
-rw-r--r--v4.0/src/CMD/EXE2BIN/E2BMACRO.INC80
1 files changed, 80 insertions, 0 deletions
diff --git a/v4.0/src/CMD/EXE2BIN/E2BMACRO.INC b/v4.0/src/CMD/EXE2BIN/E2BMACRO.INC
new file mode 100644
index 0000000..c01206d
--- /dev/null
+++ b/v4.0/src/CMD/EXE2BIN/E2BMACRO.INC
@@ -0,0 +1,80 @@
1
2
3
4
5
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 Message_Name ; ;AN000;
22 call Display_Interface ; ;AN000;
23 ;
24 endm ; ;AN000;
25
26
27;
28;*****************************************************************************
29; General Macro's
30;*****************************************************************************
31;
32
33Procedure macro Proc_Name
34
35Public Proc_Name
36Proc_Name proc
37
38 endm
39;-----------------------------------------------------------------------------
40
41DOS_Call macro Function
42
43 mov ah,Function
44 int 21h
45
46 endm
47;-----------------------------------------------------------------------------
48
49Parse_Message macro ;AN000;
50
51
52 push ds ;AN000;
53 mov dx,SEG parse_ptr ;AN000;
54 mov ds,dx ;AN000;
55 ASSUME DS:DATA ;AN000;
56 ASSUME ES:DATA ;AN000;
57 mov word ptr Parse_Error_Msg,ax ;AN000;
58 mov dx,offset Parse_Error_Msg ; ;AN000;
59 call Display_Interface ; ;AN000;
60 pop ds
61 endm ; ;AN000;
62
63;-----------------------------------------------------------------------------
64
65Extend_Message macro ; ;AN001;
66
67 ;
68 push ds ;AN001;
69 mov dx,SEG parse_ptr ;AN001;
70 mov ds,dx ;AN001;
71 ASSUME DS:DATA ;AN001;
72 ASSUME ES:DATA ;AN001;
73 mov word ptr Extend_Error_Msg,ax ; ;AN001;
74 mov dx,offset Extend_Error_Msg ; ;AN001;
75 call Display_Interface ; ;AN001;
76 pop ds ;AN001;
77 endm ; ;AN001;
78
79;-----------------------------------------------------------------------------
80