forked from maziac/DeZog
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
1257 lines (1257 loc) · 43.1 KB
/
package.json
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"name": "dezog",
"displayName": "DeZog",
"version": "3.3.2",
"publisher": "maziac",
"description": "Visual Studio Code Debugger for the Z80 and ZX Spectrum.",
"author": {
"name": "Thomas Busse"
},
"license": "MIT",
"keywords": [
"z80",
"mame",
"cspect",
"spectrum",
"assembler"
],
"engines": {
"vscode": ">=1.71.0",
"node": ">=16.14.0"
},
"icon": "assets/icon.png",
"categories": [
"Debuggers"
],
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/maziac/DeZog"
},
"sponsor": {
"url": "https://github.com/sponsors/maziac"
},
"files": [],
"scripts": {
"compile": "tsc -p ./",
"watch-tsc": "tsc -w -p ./",
"test": "mocha -u tdd ./out/tests/ --exit",
"vscode:prepublish": "npm run esbuild-node -- --minify && npm run esbuild-browser -- --minify",
"esbuild-node": "esbuild ./src/extension.ts --bundle --outdir=out --external:vscode --external:@serialport --external:jsonc-parser --external:node-graphviz --format=cjs --platform=node",
"esbuild-browser": "esbuild ./src/remotes/zsimulator/zsimwebview/main.ts --bundle --outdir=out --outbase=src --platform=browser",
"watch-node": "npm run esbuild-node -- --sourcemap --watch",
"watch-browser": "npm run esbuild-browser -- --sourcemap --watch",
"package": "vsce package",
"package:small": "file=$npm_package_name-$npm_package_version.vsix ; vsce package --ignoreFile .vscodeignore_small --out $file ; zip $file.zip $file",
"check-env": "node -e 'console.log(process.env)' | grep npm"
},
"dependencies": {
"@vscode/debugadapter": "^1.57.0",
"@vscode/debugprotocol": "^1.57.0",
"fast-glob": "^3.2.12",
"gif-writer": "^0.9.4",
"intel-hex": "^0.1.2",
"jsonc-parser": "^3.2.0",
"leader-line": "^1.0.7",
"minimatch": "^7.2.0",
"node-graphviz": "^0.1.1",
"node-gzip": "^1.1.2",
"posthtml": "^0.16.6",
"posthtml-toc": "^1.0.3",
"rng": "^0.2.2",
"semver": "^7.5.4",
"serialport": "^10.4.0",
"showdown": "^2.1.0"
},
"devDependencies": {
"@types/mocha": "10.0.0",
"@types/node": "^18.8.2",
"@types/vscode": "^1.71.0",
"@types/vscode-webview": "^1.57.0",
"esbuild": "^0.17.10",
"mocha": "^10.2.0",
"source-map-support": "^0.5.21",
"typescript": "^4.8.4"
},
"bugs": {
"url": "https://github.com/maziac/DeZog/issues"
},
"main": "./out/extension.js",
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"views": {
"debug": [
{
"type": "webview",
"id": "dezog.helpview",
"name": "DeZog Help",
"icon": "assets/help_icon.svg",
"contextualTitle": "DeZog Help",
"when": "config.dezog.showHelp"
}
]
},
"configuration": {
"type": "object",
"title": "DeZog configuration",
"properties": {
"dezog.showHelp": {
"description": "Enables the 'DeZog Help' view in the debug sidebar.",
"type": "boolean",
"scope": "resource",
"default": true
},
"dezog.log.global": {
"description": "Write global logs to an output panel.",
"type": "boolean",
"scope": "resource",
"default": false
},
"dezog.log.transport": {
"description": "Write transport logs (socket, serial, etc.) to an output panel.",
"type": "boolean",
"scope": "resource",
"default": false
},
"dezog.log.customCode": {
"description": "Write logs regarding custom (js) code to an output panel.",
"type": "boolean",
"scope": "resource",
"default": true
},
"dezog.donated": {
"description": "If you donated (press the donate button in the help) you can hide the button by setting this parameter.",
"type": "boolean",
"scope": "resource",
"default": false
}
}
},
"languages": [
{
"id": "asm-collection",
"extensions": [
".a80",
".z80",
".asm",
".inc",
".s"
],
"aliases": [
"Assembler file"
]
},
{
"id": "asm-list-file",
"extensions": [
".list",
".lis"
],
"aliases": [
"Assembler list file"
]
}
],
"breakpoints": [
{
"language": "asm-collection"
},
{
"language": "asm-list-file"
},
{
"language": "z80-macroasm"
},
{
"language": "z80-asm"
},
{
"language": "zeus-asm"
},
{
"language": "gbz80"
},
{
"language": "pasmo"
}
],
"commands": [
{
"command": "dezog.whatsNew",
"title": "Show 'What's New' page of this DeZog release.",
"category": "DeZog"
},
{
"command": "dezog.help",
"title": "Show the DeZog Help page.",
"category": "DeZog"
},
{
"command": "dezog.movePCtoCursor",
"title": "Move Program Counter to Cursor",
"category": "DeZog"
},
{
"command": "dezog.clearAllDecorations",
"title": "Clear all decorations",
"category": "DeZog"
},
{
"command": "dezog.serialport.list",
"title": "Get list of all available serial ports",
"category": "DeZog"
},
{
"command": "dezog.reload",
"title": "Reload the list file(s).",
"category": "DeZog"
},
{
"command": "dezog.disassemblyAtCursor.code",
"title": "Code",
"category": "DeZog"
},
{
"command": "dezog.disassemblyAtCursor.data",
"title": "Data",
"category": "DeZog"
},
{
"command": "dezog.disassemblyAtCursor.string",
"title": "String",
"category": "DeZog"
},
{
"command": "dezog.analyzeAtCursor.disassembly",
"title": "Smart Disassembly",
"category": "DeZog"
},
{
"command": "dezog.analyzeAtCursor.flowChart",
"title": "Flow Chart",
"category": "DeZog"
},
{
"command": "dezog.analyzeAtCursor.callGraph",
"title": "Call Graph",
"category": "DeZog"
},
{
"command": "dezog.disassembly.refresh",
"title": "Refresh disassembly",
"category": "DeZog",
"icon": "$(refresh)"
}
],
"menus": {
"commandPalette": [
{
"command": "dezog.whatsNew"
},
{
"command": "dezog.help"
},
{
"command": "dezog.movePCtoCursor",
"when": "false"
},
{
"command": "dezog.disassemblyAtCursor.code",
"when": "false"
},
{
"command": "dezog.disassemblyAtCursor.data",
"when": "false"
},
{
"command": "dezog.disassemblyAtCursor.string",
"when": "false"
},
{
"command": "dezog.analyzeAtCursor.disassembly",
"when": "false"
},
{
"command": "dezog.analyzeAtCursor.flowChart",
"when": "false"
},
{
"command": "dezog.analyzeAtCursor.callGraph",
"when": "false"
},
{
"command": "dezog.disassembly.refresh",
"when": "false"
},
{
"command": "dezog.clearAllDecorations"
},
{
"command": "dezog.serialport.list"
},
{
"command": "dezog.reload"
}
],
"editor/context": [
{
"when": "inDebugMode && resourceLangId == asm-collection || inDebugMode && resourceLangId == asm-list-file",
"command": "dezog.movePCtoCursor",
"group": "debug"
},
{
"when": "inDebugMode && resourceLangId == asm-collection || inDebugMode && resourceLangId == asm-list-file",
"submenu": "dezog.disassemblyAtCursor",
"group": "debug"
},
{
"when": "inDebugMode && resourceLangId == asm-collection || inDebugMode && resourceLangId == asm-list-file",
"submenu": "dezog.analyzeAtCursor",
"group": "debug"
}
],
"editor/title": [
{
"when": "inDebugMode && resourcePath in dezog.disassembler.disasmPath",
"command": "dezog.disassembly.refresh",
"group": "navigation"
}
],
"dezog.disassemblyAtCursor": [
{
"command": "dezog.disassemblyAtCursor.code"
},
{
"command": "dezog.disassemblyAtCursor.data"
},
{
"command": "dezog.disassemblyAtCursor.string"
}
],
"dezog.analyzeAtCursor": [
{
"command": "dezog.analyzeAtCursor.disassembly"
},
{
"command": "dezog.analyzeAtCursor.flowChart"
},
{
"command": "dezog.analyzeAtCursor.callGraph"
}
]
},
"submenus": [
{
"id": "dezog.disassemblyAtCursor",
"label": "Disassembly at Cursor / of Selection"
},
{
"id": "dezog.analyzeAtCursor",
"label": "Analyze at Cursor"
}
],
"debuggers": [
{
"type": "dezog",
"label": "DeZog",
"program": "./out/src/debugadapter.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"name",
"remoteType",
"rootFolder"
],
"properties": {
"remoteType": {
"type": "string",
"description": "It is possible to use DeZog with different remotes. Here you choose the type, i.e. 'zrcp' (ZEsarUX), 'zxnext' or 'zsim' (internal Z80 simulator). Note: Certain features or properties are not available in all types.",
"default": "zsim"
},
"zrcp": {
"description": "The configuration for the ZEsarUX emulator.",
"type": "object",
"properties": {
"hostname": {
"type": "string",
"description": "The hostname/IP address of the ZEsarUX Emulator.",
"default": "localhost"
},
"port": {
"type": "number",
"description": "The port of the ZEsarUX Emulator."
},
"loadDelay": {
"type": "number",
"description": "An additional delay before the assembler program is loaded in ZEsarUX. Use this only if you have problems starting the debug session on Windows. Default: 100ms on Windows, 0ms on other systems."
},
"skipInterrupt": {
"type": "boolean",
"description": "Skips the interrupt during stepping. Defaults to false."
},
"resetOnLaunch": {
"type": "boolean",
"description": "Resets the device after starting the debugger before starting the program to debug. Defaults to true."
},
"socketTimeout": {
"type": "number",
"description": "In secs. If no response is received within this time the connection is disconnected. Usually you don't need to change this value. Defaults to 5 seconds."
}
}
},
"cspect": {
"description": "The configuration for the CSpect emulator.",
"type": "object",
"properties": {
"hostname": {
"type": "string",
"description": "The hostname/IP address of the CSpect socket.",
"default": "localhost"
},
"port": {
"type": "number",
"description": "The port of the CSpect socket."
},
"socketTimeout": {
"type": "number",
"description": "In secs. If no response is received within this time the connection is disconnected. Usually you don't need to change this value. Defaults to 5 seconds."
}
}
},
"zsim": {
"description": "'The configuration of the internal Z80 simulator.",
"type": "object",
"properties": {
"zxKeyboard": {
"type": "boolean",
"description": "If enabled the simulator shows a keyboard to simulate keypresses.",
"default": true
},
"zxInterface2Joy": {
"type": "boolean",
"description": "If enabled the simulator shows a pad to simulate the joysticks for ZX Interface 2.",
"default": true
},
"kempstonJoy": {
"type": "boolean",
"description": "If enabled the simulator shows a pad to simulate the Kempston joystick at port 0x1F.",
"default": true
},
"visualMemory": {
"type": "boolean",
"description": "If enabled the simulator shows the access to the memory (0-0xFFFF) visually while the program is running.",
"default": true
},
"memoryModel": {
"type": "string",
"description": "Chooses the right memory model. I.e. how the memory maps to ROM and RAM and if and how paging is done.\nPossible values:\n- 'RAM': One memory area of 64K, 1 bank.\n- 'ZX16K': ROM and RAM as of the ZX Spectrum 16K, 1 ROM, 1 RAM bank.\n- 'ZX48K': ROM and RAM as of the ZX Spectrum 48K, 1 ROM, 1 RAM bank.\n- 'ZX128K': Banked memory, 16k slots, 8 RAM banks, 2 ROM banks .\n- 'ZXNEXT': Banked memory as of the ZX Next (8k slots/banks).\n- 'CUSTOM': A customizable memory model. You define the memory in the 'customMemory' property.",
"default": "RAM"
},
"customMemory": {
"description": "Only evaluated if 'memoryModel' is set to 'CUSTOM'. Chooses the banks and their memory types. Please refer to the documentation.",
"type": "object",
"properties": {
"slots": {
"type": "array",
"description": "An array with the slot definitions.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the slot.\nOptional. Required for bank switching slots. This name can be used in 'ioMmu' to assign a different bank to the slot.",
"default": ""
},
"range": {
"type": "array",
"description": "Array with first and last (inclusive) address of the slot.\nEither use a decimal number or a hex string.",
"default": [],
"items": {
"type": [
"number",
"string"
]
}
},
"banks": {
"type": "array",
"description": "Array with the banks that can be associated with the slot.",
"default": [],
"items": {
"type": "object",
"description": "The bank description. You need to describe a bank only once. If it is also used in another slot just assign the bank via the index.",
"properties": {
"name": {
"type": "string",
"description": "The name of the bank.\nOptional. Is used in the 'Memory Banks' section in the VARIABLE pane. If not set a name is given automatically.",
"default": ""
},
"shortName": {
"type": "string",
"description": "The short name of the bank.\nOptional. Is used in the disassembly (disasm.list). If not set a name is given automatically.",
"default": ""
},
"index": {
"type": [
"number",
"array"
],
"description": "Either the single index/number of the bank. Or the start and end index of a range of banks.",
"default": 0,
"items": {
"type": "number"
}
},
"rom": {
"type": "string",
"description": "The path to a rom bin file.\nOptional. File content should be in raw format (i.e. `.rom` and `.bin` extensions) or Intel HEX 8-bit format (`.hex` extensions).",
"default": ""
},
"romOffset": {
"type": [
"number",
"string"
],
"description": "Optional offset of the ROM file/content.\nEither use a decimal number or a hex string.",
"default": 0
}
}
}
},
"initialBank": {
"type": "number",
"description": "For 'zsim': The number of the bank which is assigned to the slot initially.\nOptional. If not used the first given bank is used instead.",
"default": 0
}
}
}
},
"ioMmu": {
"description": "The javascript code for bank switching.\nOptional. Only required for memory models that use banking/paging. Please refer to the documentation.\nPlease enter the code as a string or (for readability) as an arra of strings.",
"type": [
"string",
"array"
],
"default": [
""
],
"items": {
"type": "string"
}
}
}
},
"ulaScreen": {
"type": "boolean",
"description": "If enabled it shows the contents of the ZX Spectrum screen. It supports also the ZX128K screen switching.",
"default": true
},
"zxBorderWidth": {
"type": "number",
"description": "The displayed border width in pixels. If set to 0 then no border is displayed. Works only if ulaScreen is set to true.",
"default": true
},
"zxBeeper": {
"type": "boolean",
"description": "Enables ZX Spectrum sound through it's beeper.",
"default": true
},
"audioSampleRate": {
"type": "number",
"description": "The sample rate used for audio. Defaults to 22050 Hz.",
"default": 22050
},
"cpuLoadInterruptRange": {
"type": "number",
"description": "The number of interrupts to calculate the CPU-load average from. 0 to disable.",
"default": 1
},
"Z80N": {
"type": "boolean",
"description": "Default is false. If enabled the Z80N extended instructions are supported. Default: If 'tbblueMemoryManagementSlots' defaults to true, otherwise false.",
"default": false
},
"vsyncInterrupt": {
"type": "boolean",
"description": "Default is true if some ZX Spectrum feature is enabled otherwise false. If enabled an interrupt is generated after ca. 20ms (this assumes a CPU clock of 3.5MHz).",
"default": false
},
"cpuFrequency": {
"type": "number",
"description": "The CPU frequency is only used for output. I.e. when the t-states are printed there is also a printout of the correspondent time. This is calculated via the CPU frequency here.",
"default": 3500000
},
"limitSpeed": {
"type": "number",
"description": "If enabled the simulated CPU performance is throttled to fit the given PU frequency. Is enabled by default. If disabled the CPU will be simulated as fast as possible.",
"default": false
},
"updateFrequency": {
"type": "number",
"description": "The update frequency of the simulator view in Hz. Defaults to 10 Hz. Possible range is 5 to 100 Hz.",
"default": 10
},
"defaultPortIn": {
"type": "number",
"description": "The default value that is read if the read port is unused.",
"default": 255
},
"customCode": {
"debug": {
"type": "boolean",
"description": "If true the zsim simulator view is put in debug mode which makes it easier to develop additional javascript code (see jsPath).",
"default": false
},
"jsPath": {
"type": "string",
"description": "A relative path to additional javascript code that is included into the Z80 simulator."
},
"uiPath": {
"type": "string",
"description": "A relative path to additional javascript code that is included into the Z80 simulator view/UI. This code acts as UI for the code in 'jsPath'"
},
"timeStep": {
"type": "number",
"description": "You can set a time step (interval) to call the tick() function. If not set then tick() will not be called (although time/t-states still do advance)."
}
}
}
},
"zxnext": {
"description": "The configuration for debugging on the ZXNEXT device.",
"type": "object",
"properties": {
"serial": {
"type": "string",
"description": "The name of the serial port interface, on macOS e.g. \"/dev/tty.usbserial-AQ\", on Windows e.g. \"COM8\"",
"default": ""
},
"timeout": {
"type": "number",
"description": "In secs. If no response is received within this time the connection is disconnected. Usually you don't need to change this value. Defaults to 5 seconds."
}
}
},
"mame": {
"description": "The configuration for debugging with the mame gdbstub.",
"type": "object",
"properties": {
"hostname": {
"type": "string",
"description": "The hostname/IP address of the MAME socket.",
"default": "localhost"
},
"port": {
"type": "number",
"description": "The port of the CSpect socket."
},
"socketTimeout": {
"type": "number",
"description": "In secs. If no response is received within this time the connection is disconnected. Usually you don't need to change this value. Defaults to 5 seconds."
}
}
},
"unitTests": {
"description": "Whether the configuration contains the unit tests or not. Default: false.",
"type": "boolean"
},
"rootFolder": {
"description": "The path of the root folder. All other paths are relative to this. Usually set to ${workspaceFolder}.",
"type": "string"
},
"sjasmplus": {
"description": "All sjasmplus list files. (Typically only one, but it's possible to add more here.)",
"type": "array",
"items": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"description": "Path to the assembler '*.sld' file."
},
"srcDirs": {
"type": "array",
"description": "If defined the files referenced in the list file will be used for stepping otherwise the list file itself will be used. The source directories are given here as an array of strings. All dirs are relative to the 'rootFolder'.",
"default": [
""
]
},
"excludeFiles": {
"type": "array",
"description": "An array of glob patterns with filenames to exclude. The filenames (from the 'include' statement) that do match will not be associated with executed addresses. I.e. those source files are not shown during stepping. You normally only need this if you have multiple source files that share the same addresses. In that case one of the source files is shown. If that is the wrong one you can exclude it here.",
"default": []
}
}
}
},
"z80asm": {
"description": "All list files. (Typically only one, but it's possible to add more here. E.g. a commented ROM disassembly could be added as complement to the program's list file.)",
"type": "array",
"items": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"description": "Path to the assembler .list file."
},
"srcDirs": {
"type": "array",
"description": "If defined the files referenced in the list file will be used for stepping otherwise the list file itself will be used. The source directories are given here either as an array of strings. All dirs are relative to the 'rootFolder'.",
"default": [
""
]
},
"excludeFiles": {
"type": "array",
"description": "An array of glob patterns with filenames to exclude. The filenames (from the 'include' statement) that do match will not be associated with executed addresses. I.e. those source files are not shown during stepping. You normally only need this if you have multiple source files that share the same addresses. In that case one of the source files is shown. If that is the wrong one you can exclude it here.",
"default": []
}
}
}
},
"z88dk": {
"description": "All list files. (Typically only one, but it's possible to add more here. E.g. a commented ROM disassembly could be added as complement to the program's list file.)",
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"mapFile"
],
"properties": {
"path": {
"type": "string",
"description": "Path to the assembler .list file."
},
"srcDirs": {
"type": "array",
"description": "If defined the files referenced in the list file will be used for stepping otherwise the list file itself will be used. The source directories are given here as an array of strings. All dirs are relative to the 'rootFolder'.",
"default": [
""
]
},
"excludeFiles": {
"type": "array",
"description": "An array of glob patterns with filenames to exclude. The filenames (from the 'include' statement) that do match will not be associated with executed addresses. I.e. those source files are not shown during stepping. You normally only need this if you have multiple source files that share the same addresses. In that case one of the source files is shown. If that is the wrong one you can exclude it here.",
"default": []
},
"mainFile": {
"type": "string",
"description": "Path to the main assembler source file that was used to produce the .list file.",
"default": null
},
"mapFile": {
"type": "string",
"description": "The map file is required to correctly parse the label values and to get correct file/line to address associations.",
"default": 0
}
}
}
},
"z88dkv2": {
"description": "All list files. (Typically only one, but it's possible to add more here. E.g. a commented ROM disassembly could be added as complement to the program's list file.)",
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"mapFile"
],
"properties": {
"path": {
"type": "string",
"description": "Path to the assembler .list file."
},
"srcDirs": {
"type": "array",
"description": "If defined the files referenced in the list file will be used for stepping otherwise the list file itself will be used. The source directories are given here as an array of strings. All dirs are relative to the 'rootFolder'.",
"default": [
""
]
},
"excludeFiles": {
"type": "array",
"description": "An array of glob patterns with filenames to exclude. The filenames (from the 'include' statement) that do match will not be associated with executed addresses. I.e. those source files are not shown during stepping. You normally only need this if you have multiple source files that share the same addresses. In that case one of the source files is shown. If that is the wrong one you can exclude it here.",
"default": []
},
"mapFile": {
"type": "string",
"description": "The map file is required to correctly parse the label values and to get correct file/line to address associations.",
"default": 0
}
}
}
},
"revEng": {
"description": "List here all manually edited list files.",
"type": "array",
"items": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"description": "Path to the .list file. For 'revEng' you may also add a glob pattern here."
},
"reloadOnSave": {
"type": "boolean",
"description": "If true all list files (and labels) will be automatically re-loaded if this list file has been changed. Otherwise the reload has to be done manually through the command palette.\nDefault is false."
}
}
}
},
"smallValuesMaximum": {
"type": "number",
"description": "Interprets labels as address if value is bigger. Typically this is e.g. 512. So all numbers below are not treated as addresses if shown. So most constant values are covered with this as they are usually smaller than 512. Influences the formatting.",
"default": 512
},
"disassemblerArgs": {
"description": "Arguments passed to the disassembler (in the VARIABLES pane).",
"properties": {
"numberOfLines": {
"type": "number",
"description": "The number of lines displayed in the disassembly.",
"default": 10
}
}
},
"smartDisassemblerArgs": {
"description": "Arguments passed to the smart disassembler used in 'Analyze', i.e. call graph, flow chart and smart (text) disassembler.",
"properties": {
"lowerCase": {
"type": "boolean",
"description": "true = use lower case for the instructions, false = use upper case.",
"default": true
}
}
},
"tmpDir": {
"type": "string",
"description": "A directory for temporary files created by this debug adapter. Used e.g. for disassemblies. E.g. '.tmp'"
},
"topOfStack": {
"type": "string",
"description": "(Optional) You should set this to the label or address which is above the topmost entry on the stack. It is used to determine the end of the call stack."
},
"execAddress": {
"type": "string",
"description": "The start address of program execution. Use a label or a number. Can only be omitted if a .sna file is loaded."
},
"load": {
"type": "string",
"description": "(Optional) Load a .nex or .sna file (or .tap in case of ZEsarUX) into the emulator on startup of the debug session."
},
"loadObjs": {
"description": "List of one or many object files, i.e. memory dumps. Contain 'path' and 'start' address. (Optional)",
"type": "array",
"items": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"description": "Path to the object file (.o/.obj) file."
},
"start": {
"type": "string",
"description": "The start address, e.g. 32768. Defaults to 0."
}
}
}
},
"startAutomatically": {
"type": "boolean",
"description": "Start automatically after launch. Default is false."
},
"commandsAfterLaunch": {
"description": "An array with commands that are executed after the program-to-debug is loaded. With '-e' or '-exec' you can pass commands to the debugger directly.",
"type": "array",
"items": {
"type": "string"
}
},
"history": {
"description": "Configures the 'reverse debugging' (time travel).",
"type": "object",
"properties": {
"reverseDebugInstructionCount": {
"type": "number",
"description": "Sets the number of instructions for reverse debugging. If set to 0 then reverse debugging is turned off. Default is 10000."
},
"spotCount": {
"type": "number",
"description": "Sets the number of instructions to show in a spot. If you set this e.g. to 5 then the 5 previous and the 5 next instructions related to the current position are shown. Use 0 to disable. Default is 10."
},
"spotShowRegisters": {
"type": "boolean",
"description": "If true it shows the changed register values in the spot history. You can disable the feature here. Defaults to true."
},
"codeCoverageEnabled": {
"type": "boolean",
"description": "Enables/disables code coverage. Default is true."
}
}
},
"formatting": {
"description": "Configures the display of values of DeZog. e.g. it is possible to customize how the registers are displayed or what is displayed on hovering.",
"type": "object",
"properties": {
"registerVar": {
"description": "Defines the formatting of the registers when displayed in the VARIABLES area. E.g. as hex value or as integer. Also allows to display labels and various other formats. Use:\n${name} = the name of the register, e.g. HL\n${hex} = value as hex, e.g. A9F5\n${dhex} = value as hex with space between bytes, e.g. A9 F5\n${unsigned} = value as unsigned, e.g. 1234\n$(signed) = value as signed, e.g. -59\n$(bits) = value as bits , e.g. 10011011\n$(flags) = value interpreted as status flags (only useful for F and F'), e.g. ZNC\n${labels} = value as label (or several labels)\n{labelsplus} = value as label (or several labels) plus an index/offset\n${pre:labels:join} = value as label (or several labels). If no label is found nothing is printed. If at least 1 label is found the 'pre' string is printed followed by the label(s). If more than 1 label is found they are concatenated with the 'join' string.\nNote: The ${b@:...} prefix is not allowed in for the VARIABLES section.",
"type": "array",
"items": {
"type": "string"
}
},
"registerHover": {
"description": "Format how the registers are displayed when hovering with the mouse. Is an array with 2 strings tuples. The first is an regex that checks the register. If fulfilled the 2nd is used to format the value.",
"type": "array",
"items": {
"type": "string"
}
},
"bigValues": {
"type": "string",
"description": "The general formatting for address labels bigger than 'smallValuesMaximum'."
},
"smallValues": {
"type": "string",
"description": "The general formatting for small values like constants smaller/equal than 'smallValuesMaximum'."
},
"watchByte": {
"type": "string",
"description": "The 'byte' formatting for labels in the WATCHes area."
},
"watchWord": {
"type": "string",
"description": "The 'word' formatting for labels in the WATCHes area."
},
"stackVar": {
"type": "string",
"description": "Format for the pushed values in the STACK area."
}
}
},
"memoryViewer": {
"description": "The appearance of the memory viewer can be customized here. E.g. the colors or the hover display.",
"type": "object",
"properties": {
"addressColor": {
"type": "string",
"description": "The text color of the address field."
},
"bytesColor": {
"type": "string",
"description": "The color of the bytes shown in hex."
},
"asciiColor": {
"type": "string",
"description": "The text color of the ascii field."
},
"addressHoverFormat": {
"type": "string",
"description": "see registerVarFormat. Format for the address when hovering."
},
"valueHoverFormat": {
"type": "string",
"description": "see registerVarFormat. Format for the value when hovering."
},
"registerPointerColors": {
"type": "array",
"description": "An array with register/color pairs. All selected register will appear with the correspondent color in the memory view. Registers not chosen will not appear.",
"items": [
{
"type": "string"
},
{
"type": "string"
}
],
"default": [
"HL",
"darkgreen",
"DE",
"darkcyan",
"BC",
"dimgray",
"IX",
"darkorange",
"IY",
"darkviolet"
]
},
"registersMemoryView": {
"type": "array",
"description": "An array of register to show in the register memory view. This view is automatically opened at startup and shows the memory the registers point to. E.g. [ 'HL', 'DE', 'IX' ].",
"items": {
"type": "string"