]> wirehaze git hosting - MS-DOS.git/blob - v4.0/src/CMD/EXE2BIN/E2BMACRO.INC

wirehaze git hosting

MZ is back!
[MS-DOS.git] / v4.0 / src / CMD / EXE2BIN / E2BMACRO.INC
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
19 MESSAGE 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
33 Procedure macro Proc_Name
34
35 Public Proc_Name
36 Proc_Name proc
37
38 endm
39 ;-----------------------------------------------------------------------------
40
41 DOS_Call macro Function
42
43 mov ah,Function
44 int 21h
45
46 endm
47 ;-----------------------------------------------------------------------------
48
49 Parse_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
65 Extend_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