forked from microsoft/GW-BASIC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IBMRES.H
80 lines (74 loc) · 1.23 KB
/
IBMRES.H
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
; Include file for IBMRES.ASM
;
INCLUDE OEM.H ; General definitions
;
; Reserve word table generating Macros
;
un_def MACRO RESWRD
%OUT +++ Undefined reserved word - &RESWRD
ENDM
T MACRO RESWRD
QQ=QQ+1
PUBLIC $&RESWRD
$&RESWRD=QQ
ENDM
Q MACRO RESWRD
IFDEF $&RESWRD
$F=0
IRPC XX,<RESWRD>
IF $F
$Q="&XX&"
DB "&XX&"
ENDIF
IFE $F-1
.XLIST
ENDIF
$F=$F+1
ENDM
.LIST
ORG $-1
DB $Q+128D
DB $&RESWRD
ELSE
un_def RESWRD
ENDIF
ENDM
QF MACRO RESWRD
IFDEF $&RESWRD
$F=0
IRPC XX,<RESWRD>
IF $F
$Q="&XX&"
DB "&XX&"
ENDIF
IFE $F-1
.XLIST
ENDIF
$F=$F+1
ENDM
.LIST
ORG $-1
DB $Q+128D
DB $&RESWRD-128D
ELSE
un_def RESWRD
ENDIF
ENDM
;
R MACRO RESWRD
extrn RESWRD:NEAR
DW RESWRD
QQ=QQ+1
PUBLIC $&RESWRD
$&RESWRD=QQ
ENDM
R2 MACRO RESWRD,RESDSP
extrn RESDSP:NEAR
DW RESDSP
QQ=QQ+1
PUBLIC $&RESWRD
$&RESWRD=QQ
ENDM
;
PAGE