a2-memory-map 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/Cargo.lock +41 -23
- package/Cargo.toml +7 -5
- package/README-crate.md +20 -1
- package/README.md +27 -3
- package/bindings/rust/lib.rs +126 -40
- package/build/index.js +86 -45
- package/build/index.js.map +1 -0
- package/build/map.json +336 -136
- package/build/map.schema.json +39 -0
- package/build/vendors.json +263 -0
- package/build/vendors.schema.json +28 -0
- package/build.rs +154 -0
- package/package.json +7 -7
- package/src/index.ts +99 -19
- package/src/map.json +336 -136
- package/src/map.schema.json +39 -0
- package/src/vendors.json +263 -0
- package/src/vendors.schema.json +28 -0
- package/tsconfig.json +12 -107
- package/build/index.d.ts +0 -25
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "https://github.com/dfgordon/a2-memory-map/src/map.schema.json",
|
|
4
|
+
"title": "Apple II Memory Map",
|
|
5
|
+
"description": "Database of important addresses for Apple II programming",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"patternProperties": {
|
|
8
|
+
"^0x[0-9a-fA-F]{4}$": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"brief": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"desc": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"ctx": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^(Applesoft|Monitor|Integer BASIC|DOS 3.3|ProDOS|Enhanced Apple //e or higher( needed for \\[[0-9]\\])?)(\\s*[|&]\\s*(Applesoft|Monitor|Integer BASIC|DOS 3.3|ProDOS|Enhanced Apple //e or higher( needed for \\[[0-9]\\])?))*$"
|
|
20
|
+
},
|
|
21
|
+
"subctx": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^(io|FP|string|parsing|hi-res|variables)(\\s*[|&]\\s*(io|FP|string|parsing|hi-res|variables))*$"
|
|
24
|
+
},
|
|
25
|
+
"label": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"type": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^(byte value|word|vector|float32|float|unpacked float|ZP routine|DOS routine|ROM routine|soft switch)(\\s*[|&]\\s*(byte value|word|vector|float32|float|unpacked float|ZP routine|ROM routine|soft switch))*$"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"desc",
|
|
35
|
+
"type"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
package/src/vendors.json
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./vendors.schema.json",
|
|
3
|
+
"0xd393": {
|
|
4
|
+
"ctx": "Applesoft",
|
|
5
|
+
"docstr": [
|
|
6
|
+
"THIS IS THE BLOCK TRANSFER ROUTINE.",
|
|
7
|
+
"IT MAKES SPACE BY SHOVING EVERYTHING FORWARD.",
|
|
8
|
+
"",
|
|
9
|
+
"ON ENTRY:",
|
|
10
|
+
"[Y,A]=[HIGHDS] (FOR REASON).",
|
|
11
|
+
"[HIGHDS]= DESTINATION OF [HIGH ADDRESS].",
|
|
12
|
+
"[LOWTR]= LOWEST ADDR TO BE TRANSFERRED.",
|
|
13
|
+
"[HIGHTR]= HIGHEST ADDR TO BE TRANSFERRED.",
|
|
14
|
+
"",
|
|
15
|
+
"A CHECK IS MADE TO ASCERTAIN THAT A REASONABLE",
|
|
16
|
+
"AMOUNT OF SPACE REMAINS BETWEEN THE BOTTOM",
|
|
17
|
+
"OF THE STRINGS AND THE HIGHEST LOCATION TRANSFERRED INTO.",
|
|
18
|
+
"",
|
|
19
|
+
"ON EXIT:",
|
|
20
|
+
"[LOWTR] ARE UNCHANGED.",
|
|
21
|
+
"[HIGHTR]=[LOWTR]-200 OCTAL.",
|
|
22
|
+
"[HIGHDS]=LOWEST ADDR TRANSFERRED INTO MINUS 200 OCTAL."
|
|
23
|
+
],
|
|
24
|
+
"vendor": "Microsoft"
|
|
25
|
+
},
|
|
26
|
+
"0xd52c": {
|
|
27
|
+
"ctx": "Applesoft",
|
|
28
|
+
"docstr": [
|
|
29
|
+
"THIS IS THE LINE INPUT ROUTINE.",
|
|
30
|
+
"IT READS CHARACTERS INTO BUF USING BACKARROW (UNDERSCORE, OR",
|
|
31
|
+
"SHIFT O) AS THE DELETE CHARACTER AND @ AS THE",
|
|
32
|
+
"LINE DELETE CHARACTER. IF MORE THAN BUFLEN CHARACTERS",
|
|
33
|
+
"ARE TYPED, NO ECHOING IS DONE UNTIL A BACKARROW OR @ OR CR",
|
|
34
|
+
"IS TYPED. CONTROL-G WILL BE TYPED FOR EACH EXTRA CHARACTER.",
|
|
35
|
+
"THE ROUTINE IS ENTERED AT INLIN."
|
|
36
|
+
],
|
|
37
|
+
"vendor": "Microsoft"
|
|
38
|
+
},
|
|
39
|
+
"0xd61a": {
|
|
40
|
+
"ctx": "Applesoft",
|
|
41
|
+
"docstr": [
|
|
42
|
+
"FNDLIN SEARCHES THE PROGRAM TEXT FOR THE LINE",
|
|
43
|
+
"WHOSE NUMBER IS PASSED IN \"LINNUM\".",
|
|
44
|
+
"THERE ARE TWO POSSIBLE RETURNS:",
|
|
45
|
+
"",
|
|
46
|
+
" 1) CARRY SET.",
|
|
47
|
+
" LOWTR POINTS TO THE LINK FIELD IN THE LINE",
|
|
48
|
+
" WHICH IS THE ONE SEARCHED FOR.",
|
|
49
|
+
"",
|
|
50
|
+
" 2) CARRY NOT SET.",
|
|
51
|
+
" LINE NOT FOUND. [LOWTR] POINTS TO THE LINE IN THE",
|
|
52
|
+
" PROGRAM GREATER THAN THE ONE SOUGHT AFTER."
|
|
53
|
+
],
|
|
54
|
+
"vendor": "Microsoft"
|
|
55
|
+
},
|
|
56
|
+
"0xd66c": {
|
|
57
|
+
"ctx": "Applesoft",
|
|
58
|
+
"docstr": [
|
|
59
|
+
" CLEAR INITIALIZES THE VARIABLE AND",
|
|
60
|
+
" ARRAY SPACE BY RESETING ARYTAB (THE END OF SIMPLE VARIABLE SPACE)",
|
|
61
|
+
" AND STREND (THE END OF ARRAY STORAGE). IT FALLS INTO \"STKINI\"",
|
|
62
|
+
" WHICH RESETS THE STACK."
|
|
63
|
+
],
|
|
64
|
+
"vendor": "Microsoft"
|
|
65
|
+
},
|
|
66
|
+
"0xd683": {
|
|
67
|
+
"ctx": "Applesoft",
|
|
68
|
+
"docstr": [
|
|
69
|
+
"STKINI RESETS THE STACK POINTER ELIMINATING",
|
|
70
|
+
"GOSUB AND FOR CONTEXT. STRING TEMPORARIES ARE FREED",
|
|
71
|
+
"UP, SUBFLG IS RESET. CONTINUING IS PROHIBITED.",
|
|
72
|
+
"AND A DUMMY ENTRY IS LEFT AT THE BOTTOM OF THE STACK SO \"FNDFOR\" WILL",
|
|
73
|
+
"ALWAYS FIND A NON-\"FOR\" ENTRY AT THE BOTTOM OF THE STACK."
|
|
74
|
+
],
|
|
75
|
+
"vendor": "Microsoft"
|
|
76
|
+
},
|
|
77
|
+
"0xd7d2": {
|
|
78
|
+
"ctx": "Applesoft",
|
|
79
|
+
"docstr": [
|
|
80
|
+
"BACK HERE FOR NEW STATEMENT. CHARACTER POINTED TO BY TXTPTR",
|
|
81
|
+
"IS \":\" OR END-OF-LINE. THE ADDRESS OF THIS LOC IS LEFT",
|
|
82
|
+
"ON THE STACK WHEN A STATEMENT IS EXECUTED SO THAT",
|
|
83
|
+
"IT CAN MERELY DO A RTS WHEN IT IS DONE."
|
|
84
|
+
],
|
|
85
|
+
"vendor": "Microsoft"
|
|
86
|
+
},
|
|
87
|
+
"0xda0c": {
|
|
88
|
+
"ctx": "Applesoft",
|
|
89
|
+
"docstr": [
|
|
90
|
+
"\"LINGET\" READS A LINE NUMBER FROM THE CURRENT TEXT POSITION.",
|
|
91
|
+
"",
|
|
92
|
+
"LINE NUMBERS RANGE FROM 0 TO 64000-1.",
|
|
93
|
+
"",
|
|
94
|
+
"THE ANSWER IS RETURNED IN \"LINNUM\".",
|
|
95
|
+
"\"TXTPTR\" IS UPDATED TO POINT TO THE TERMINATING CHARCTER",
|
|
96
|
+
"AND [A] = THE TERMINATING CHARACTER WITH CONDITION",
|
|
97
|
+
"CODES SET UP TO REFLECT ITS VALUE."
|
|
98
|
+
],
|
|
99
|
+
"vendor": "Microsoft"
|
|
100
|
+
},
|
|
101
|
+
"0xdb3a": {
|
|
102
|
+
"ctx": "Applesoft",
|
|
103
|
+
"docstr": [
|
|
104
|
+
"PRINT THE STRING POINTED TO BY [Y,A] WHICH ENDS WITH A ZERO.",
|
|
105
|
+
"IF THE STRING IS BELOW DSCTMP IT WILL BE COPIED INTO STRING SPACE."
|
|
106
|
+
],
|
|
107
|
+
"vendor": "Microsoft"
|
|
108
|
+
},
|
|
109
|
+
"0xdb3d": {
|
|
110
|
+
"ctx": "Applesoft",
|
|
111
|
+
"docstr": [
|
|
112
|
+
"PRINT THE STRING WHOSE DESCRIPTOR IS POINTED TO BY FACMO."
|
|
113
|
+
],
|
|
114
|
+
"vendor": "Microsoft"
|
|
115
|
+
},
|
|
116
|
+
"0xdb5c": {
|
|
117
|
+
"ctx": "Applesoft",
|
|
118
|
+
"docstr": [
|
|
119
|
+
"OUTDO OUTPUTS THE CHARACTER IN ACCA, USING CNTWFL",
|
|
120
|
+
"(SUPPRESS OR NOT), TRMPOS (PRINT HEAD POSITION),",
|
|
121
|
+
"TIMING, ETCQ. NO REGISTERS ARE CHANGED."
|
|
122
|
+
],
|
|
123
|
+
"vendor": "Microsoft"
|
|
124
|
+
},
|
|
125
|
+
"0xdd7b": {
|
|
126
|
+
"ctx": "Applesoft",
|
|
127
|
+
"docstr": [
|
|
128
|
+
"THE FORMULA EVALUATOR STARTS WITH",
|
|
129
|
+
"[TXTPTR] POINTING TO THE FIRST CHARACTER OF THE FORMULA.",
|
|
130
|
+
"AT THE END [TXTPTR] POINTS TO THE TERMINATOR.",
|
|
131
|
+
"THE RESULT IS LEFT IN THE FAC.",
|
|
132
|
+
"ON RETURN [A] DOES NOT REFLECT THE TERMINATOR.",
|
|
133
|
+
"",
|
|
134
|
+
"THE FORMULA EVALUATOR USES THE OPERATOR LIST (OPTAB)",
|
|
135
|
+
"TO DETERMINE PRECEDENCE AND DISPATCH ADDRESSES FOR",
|
|
136
|
+
"EACH OPERATOR.",
|
|
137
|
+
"A TEMPORARY RESULT ON THE STACK HAS THE FOLLOWING FORMAT.",
|
|
138
|
+
"THE ADDRESS OF THE OPERATOR ROUTINE.",
|
|
139
|
+
"THE FLOATING POINT TEMPORARY RESULT.",
|
|
140
|
+
"THE PRECEDENCE OF THE OPERATOR."
|
|
141
|
+
],
|
|
142
|
+
"vendor": "Microsoft"
|
|
143
|
+
},
|
|
144
|
+
"0xdec0": {
|
|
145
|
+
"ctx": "Applesoft",
|
|
146
|
+
"docstr": [
|
|
147
|
+
"\"SYNCHK\" LOOKS AT THE CURRENT CHARACTER TO MAKE SURE IT",
|
|
148
|
+
"IS THE SPECIFIC THING LOADED INTO ACCA JUST BEFORE THE CALL TO",
|
|
149
|
+
"\"SYNCHK\". IF NOT, IT CALLS THE \"SYNTAX ERROR\" ROUTINE.",
|
|
150
|
+
"OTHERWISE IT GOBBLES THE NEXT CHAR AND RETURNS,",
|
|
151
|
+
"",
|
|
152
|
+
"[A]=NEW CHAR AND TXTPTR IS ADVANCED BY \"CHRGET\".",
|
|
153
|
+
"",
|
|
154
|
+
"DFG - This docstring refers to the macro SYNCHK which simply",
|
|
155
|
+
"loads A with its argument and then calls SYNCHR."
|
|
156
|
+
],
|
|
157
|
+
"vendor": "Microsoft"
|
|
158
|
+
},
|
|
159
|
+
"0xdfe3": {
|
|
160
|
+
"ctx": "Applesoft",
|
|
161
|
+
"docstr": [
|
|
162
|
+
"ROUTINE TO READ THE VARIABLE NAME AT THE CURRENT TEXT POSITION",
|
|
163
|
+
"AND PUT A POINTER TO ITS VALUE IN VARPNT. [TXTPTR]",
|
|
164
|
+
"POINTS TO THE TERMINATING CHARCTER.. NOT THAT EVALUATING SUBSCRIPTS",
|
|
165
|
+
"IN A VARIABLE NAME CAN CAUSE RECURSIVE CALLS TO \"PTRGET\" SO AT",
|
|
166
|
+
"THAT POINT ALL VALUES MUST BE STORED ON THE STACK."
|
|
167
|
+
],
|
|
168
|
+
"vendor": "Microsoft"
|
|
169
|
+
},
|
|
170
|
+
"0xe3d5": {
|
|
171
|
+
"ctx": "Applesoft",
|
|
172
|
+
"docstr": [
|
|
173
|
+
"\"STRINI\" GET STRING SPACE FOR THE CREATION OF A STRING AND",
|
|
174
|
+
"CREATES A DESCRIPTOR FOR IT IN \"DSCTMP\"."
|
|
175
|
+
],
|
|
176
|
+
"vendor": "Microsoft"
|
|
177
|
+
},
|
|
178
|
+
"0xe42a": {
|
|
179
|
+
"ctx": "Applesoft",
|
|
180
|
+
"docstr": [
|
|
181
|
+
"SOME STRING FUNCTION IS RETURNING A RESULT IN DSCTMP.",
|
|
182
|
+
"SETUP A TEMP DESCRIPTOR WITH DSCTMP IN IT.",
|
|
183
|
+
"PUT A POINTER TO THE DESCRIPTOR IN FACMO&LO AND FLAG THE",
|
|
184
|
+
"RESULT AS TYPE STRING."
|
|
185
|
+
],
|
|
186
|
+
"vendor": "Microsoft"
|
|
187
|
+
},
|
|
188
|
+
"0xe452": {
|
|
189
|
+
"ctx": "Applesoft",
|
|
190
|
+
"docstr": [
|
|
191
|
+
"GETSPA - GET SPACE FOR CHARACTER STRING.",
|
|
192
|
+
"MAY FORCE GARBAGE COLLECTION.",
|
|
193
|
+
"",
|
|
194
|
+
"\\# OF CHARACTERS (BYTES) IN ACCA.",
|
|
195
|
+
"RETURNS WITH POINTER IN [Y,X]. OTHERWISE (IF CAN'T GET",
|
|
196
|
+
"SPACE) BLOWS OFF TO \"OUT OF STRING SPACE\" TYPE ERROR.",
|
|
197
|
+
"ALSO PRESERVES [ACCA] AND SETS [FRESPC]=[Y,X]=PNTR AT SPACE."
|
|
198
|
+
],
|
|
199
|
+
"vendor": "Microsoft"
|
|
200
|
+
},
|
|
201
|
+
"0xe597": {
|
|
202
|
+
"ctx": "Applesoft",
|
|
203
|
+
"docstr": [
|
|
204
|
+
"THE FOLLOWING ROUTINE CONCATENATES TWO STRINGS.",
|
|
205
|
+
"THE FAC CONTAINS THE FIRST ONE AT THIS POINT.",
|
|
206
|
+
"[TXTPTR] POINTS TO THE + SIGN."
|
|
207
|
+
],
|
|
208
|
+
"vendor": "Microsoft"
|
|
209
|
+
},
|
|
210
|
+
"0xe5fd": {
|
|
211
|
+
"ctx": "Applesoft",
|
|
212
|
+
"docstr": [
|
|
213
|
+
"DFG - Verify FAC is a string, copy FACMO to INDEX, and fall into:",
|
|
214
|
+
"",
|
|
215
|
+
"\"FRETMP\" IS PASSED A STRING DESCRIPTOR PNTR IN [Y,A].",
|
|
216
|
+
"A CHECK IS MADE TO SEE IF THE STRING DESCRIPTOR POINTS TO THE LAST",
|
|
217
|
+
"TEMPORARY DESCRIPTOR ALLOCATED BY PUTNEW.",
|
|
218
|
+
"IF SO, THE TEMPORARY IS FREED UP BY THE UPDATING OF [TEMPPT].",
|
|
219
|
+
"IF A TEMP IS FREED UP, A FURTHER CHECK SEES IF THE STRING DATA THAT",
|
|
220
|
+
"THAT STRING TEMP PNT'D TO IS THE LOWEST PART OF STRING SPACE IN USE.",
|
|
221
|
+
"IF SO, [FRETOP] IS UPDATED TO REFLECT THE FACT THE FACT THAT THE SPACE",
|
|
222
|
+
"IS NO LONGER IN USE.",
|
|
223
|
+
"THE ADDR OF THE ACTUAL STRING IS RETURNED IN [Y,X] AND",
|
|
224
|
+
"ITS LENGTH IN ACCA."
|
|
225
|
+
],
|
|
226
|
+
"vendor": "Microsoft"
|
|
227
|
+
},
|
|
228
|
+
"0xec4a": {
|
|
229
|
+
"ctx": "Applesoft",
|
|
230
|
+
"docstr": [
|
|
231
|
+
"NUMBER INPUT IS LEFT IN FAC.",
|
|
232
|
+
"AT ENTRY [TXTPTR] POINTS TO THE FIRST CHARACTER IN A TEXT BUFFER.",
|
|
233
|
+
"THE FIRST CHARACTER IS ALSO IN ACCA. FIN PACKS THE DIGITS",
|
|
234
|
+
"INTO THE FAC AS AN INTEGER AND KEEPS TRACK OF WHERE THE",
|
|
235
|
+
"DECIMAL POINT IS. [DPTFLG] TELL WHETHER A DP HAS BEEN",
|
|
236
|
+
"SEEN. [DECCNT] IS THE NUMBER OF DIGITS AFTER THE DP.",
|
|
237
|
+
"AT THE END [DECCNT] AND THE EXPONENT ARE USED TO",
|
|
238
|
+
"DETERMINE HOW MANY TIMES TO MULTIPLY OR DIVIDE BY TEN",
|
|
239
|
+
"TO GET THE CORRECT NUMBER."
|
|
240
|
+
],
|
|
241
|
+
"vendor": "Microsoft"
|
|
242
|
+
},
|
|
243
|
+
"0xefae": {
|
|
244
|
+
"ctx": "Applesoft",
|
|
245
|
+
"docstr": [
|
|
246
|
+
"PSEUDO-RANDOM NUMBER GENERATOR.",
|
|
247
|
+
"IF ARG=0, THE LAST RANDOM NUMBER GENERATED IS RETURNED.",
|
|
248
|
+
"IF ARG .LT. 0, A NEW SEQUENCE OF RANDOM NUMBERS IS",
|
|
249
|
+
"STARTED USING THE ARGUMENT.",
|
|
250
|
+
"TO FORM THE NEXT RANDOM NUMBER IN THE SEQUENCE,",
|
|
251
|
+
"MULTIPLY THE PREVIOUS RANDOM NUMBER BY A RANDOM CONSTANT",
|
|
252
|
+
"AND ADD IN ANOTHER RANDOM CONSTANT. THE THEN HO",
|
|
253
|
+
"AND LO BYTES ARE SWITCHED, THE EXPONENT IS PUT WHERE",
|
|
254
|
+
"IT WILL BE SHIFTED IN BY NORMAL, AND THE EXPONENT IN THE FAC",
|
|
255
|
+
"IS SET TO 200 SO THE RESULT WILL BE LESS THAN 1. THIS",
|
|
256
|
+
"IS THEN NORMALIZED AND SAVED FOR THE NEXT TIME.",
|
|
257
|
+
"THE HO AND LOW BYTES WERE SWITCHED SO THERE WILL BE A",
|
|
258
|
+
"RANDOM CHANCE OF GETTING A NUMBER LESS THAN OR GREATER",
|
|
259
|
+
"THAN .5 ."
|
|
260
|
+
],
|
|
261
|
+
"vendor": "Microsoft"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "https://github.com/dfgordon/a2-memory-map/src/vendors.schema.json",
|
|
4
|
+
"title": "Apple II Vendor Docstrings",
|
|
5
|
+
"description": "vendor docstrings associated with Apple II ROM addresses",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"patternProperties": {
|
|
8
|
+
"^0x[0-9a-fA-F]{4}$": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"ctx": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^(Applesoft|Monitor|Integer BASIC|DOS 3.3|ProDOS|Enhanced Apple //e or higher( needed for \\[[0-9]\\])?)(\\s*[|&]\\s*(Applesoft|Monitor|Integer BASIC|DOS 3.3|ProDOS|Enhanced Apple //e or higher( needed for \\[[0-9]\\])?))*$"
|
|
14
|
+
},
|
|
15
|
+
"docstr": {
|
|
16
|
+
"type": "array"
|
|
17
|
+
},
|
|
18
|
+
"vendor": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"docstr",
|
|
24
|
+
"vendor"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,109 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"target": "es2019", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
15
|
-
"lib": ["ES2019","DOM"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
16
|
-
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
17
|
-
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
|
18
|
-
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
|
19
|
-
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
20
|
-
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
21
|
-
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
|
22
|
-
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
|
23
|
-
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
24
|
-
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
25
|
-
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
26
|
-
|
|
27
|
-
/* Modules */
|
|
28
|
-
"module": "commonjs", /* Specify what module code is generated. */
|
|
29
|
-
"rootDir": "src", /* Specify the root folder within your source files. */
|
|
30
|
-
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
31
|
-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
32
|
-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
33
|
-
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
34
|
-
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
35
|
-
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
36
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
37
|
-
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
38
|
-
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
|
39
|
-
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
|
40
|
-
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
|
41
|
-
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
|
42
|
-
"resolveJsonModule": true, /* Enable importing .json files. */
|
|
43
|
-
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
44
|
-
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
45
|
-
|
|
46
|
-
/* JavaScript Support */
|
|
47
|
-
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
48
|
-
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
49
|
-
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
50
|
-
|
|
51
|
-
/* Emit */
|
|
52
|
-
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
53
|
-
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
54
|
-
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
55
|
-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
56
|
-
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
57
|
-
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
|
58
|
-
"outDir": "build", /* Specify an output folder for all emitted files. */
|
|
59
|
-
// "removeComments": true, /* Disable emitting comments. */
|
|
60
|
-
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
61
|
-
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
62
|
-
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
|
63
|
-
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
64
|
-
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
65
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
66
|
-
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
67
|
-
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
68
|
-
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
69
|
-
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
70
|
-
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
71
|
-
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
72
|
-
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
73
|
-
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
74
|
-
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
75
|
-
|
|
76
|
-
/* Interop Constraints */
|
|
77
|
-
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
78
|
-
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
|
79
|
-
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
80
|
-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
81
|
-
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
82
|
-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
83
|
-
|
|
84
|
-
/* Type Checking */
|
|
85
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
86
|
-
"noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
87
|
-
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
88
|
-
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
89
|
-
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
90
|
-
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
91
|
-
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
92
|
-
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
93
|
-
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
94
|
-
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
95
|
-
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
96
|
-
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
97
|
-
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
98
|
-
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
99
|
-
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
100
|
-
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
101
|
-
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
102
|
-
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
103
|
-
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
104
|
-
|
|
105
|
-
/* Completeness */
|
|
106
|
-
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
107
|
-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
108
|
-
}
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "NodeNext",
|
|
4
|
+
"target": "ES2022",
|
|
5
|
+
"outDir": "build",
|
|
6
|
+
"sourceMap": true,
|
|
7
|
+
"rootDir": "src",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"resolveJsonModule": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"types": ["node"]
|
|
12
|
+
},
|
|
13
|
+
"include": [ "src" ]
|
|
109
14
|
}
|
package/build/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface AddressInfo {
|
|
2
|
-
brief: string | undefined;
|
|
3
|
-
ctx: string | undefined;
|
|
4
|
-
desc: string;
|
|
5
|
-
label: string | undefined;
|
|
6
|
-
note: string | undefined;
|
|
7
|
-
subctx: string | undefined;
|
|
8
|
-
type: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Gather the database into a map, logic strings are unprocessed.
|
|
12
|
-
* @returns Map from address strings to AddressInfo objects.
|
|
13
|
-
*/
|
|
14
|
-
export declare function get_all(): Map<string, AddressInfo>;
|
|
15
|
-
/**
|
|
16
|
-
* Get data for one address
|
|
17
|
-
* @param addr address in the range -32767 to 65535
|
|
18
|
-
* @returns AddressInfo object or undefined. Fields may contain logic operators.
|
|
19
|
-
*/
|
|
20
|
-
export declare function get_one(addr: number): AddressInfo | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Get data for one address and split by context
|
|
23
|
-
* @param addr Array of AddressInfo objects, one for each context, or undefined
|
|
24
|
-
*/
|
|
25
|
-
export declare function get_one_and_split(addr: number): Array<AddressInfo> | undefined;
|