1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
;
;******************************************************************************
; Message Macro Definitions
;******************************************************************************
;
EXTRN Display_Interface:near
;-----------------------------------------------------------------------------
Message macro Message_Name ; ;AN000;
;
mov dx,offset dg:Message_Name ; ;AN000;
call Display_Interface ; ;AN000;
endm ; ;AN000;
;-----------------------------------------------------------------------------
Parse_Message macro ; ;AN000;
;
push ds ; ;AN000;bgb
mov dx,dg ; ;AN000;bgb
mov ds,dx ; ;AN000;bgb
mov word ptr Parse_Error_Msg,ax ; ;AN000;
mov dx,offset dg:Parse_Error_Msg ; ;AN000;
call Display_Interface ; ;AN000;
pop ds ; ;AN000;bgb
endm ; ;AN000;
;-----------------------------------------------------------------------------
Extended_Message macro ; ;AN000;
;
push ds ; ;AN000;bgb
mov dx,dg ; ;AN000;bgb
mov ds,dx ; ;AN000;bgb
mov word ptr Ext_Error_Msg,ax ; ;AN000;
mov dx,offset dg:Ext_Error_Msg ; ;AN000;
call Display_Interface ; ;AN000;
pop ds ; ;AN000;bgb
endm ; ;AN000;
;
;*****************************************************************************
; General Macro's
;*****************************************************************************
;
Procedure macro Proc_Name ; ;AN000;
;
Public Proc_Name ; ;AN000;
Proc_Name proc ; ;AN000;
;
endm ; ;AN000;
;-----------------------------------------------------------------------------
DOS_Call macro Function ; ;AN000;
;
mov ah,Function ; ;AN000;
int 21h ; ;AN000;
;
endm ; ;AN000;
;-----------------------------------------------------------------------------
Popff macro
jmp $+3
iret
push cs
call $-2
endm
;-----------------------------------------------------------------------------
Set_Data_Segment macro
push ax
mov ax,dg ;Point to data segment
mov ds,ax ;
assume ds:dg,es:dg
push ds
pop es
pop ax
endm
|