-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
package.json
1506 lines (1506 loc) · 51.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.5.1-rc1",
"publisher": "maziac",
"description": "Visual Studio Code Debugger for the Z80 and ZX Spectrum/ZX81.",
"author": {
"name": "Thomas Busse"
},
"license": "MIT",
"keywords": [
"z80",
"assembler",
"zx spectrum",
"zx81",
"mame",
"cspect"
],
"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",
"xml2js": "^0.6.2"
},
"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",
"sinon": "^18.0.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.zsim.hardware": {
"description": "Write logs from simulated hardware, e.g. zxnDMA, to an output panel. For the internal simulator (zsim).",
"type": "boolean",
"scope": "resource",
"default": true
},
"dezog.log.zsim.customCode": {
"description": "Write logs regarding custom (js) code to an output panel. For the internal simulator (zsim).",
"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.serialport.test",
"title": "Test communication through a serial port",
"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)"
},
{
"command": "dezog.run",
"title": "Run with DeZog",
"category": "DeZog"
}
],
"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.serialport.test"
},
{
"command": "dezog.reload"
}
],
"explorer/context": [
{
"group": "1_dezog",
"command": "dezog.run",
"when": "resourceExtname == .p || resourceExtname == .81 || resourceExtname == .p81 || resourceExtname == .P || resourceExtname == .P81 || resourceExtname == .sna || resourceExtname == .SNA"
}
],
"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",
"enum": [
"zrcp",
"cspect",
"zsim",
"zxnext",
"mame"
],
"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": {
"preset": {
"type": "string",
"enum": [
"spectrum",
"zx81"
],
"description": "The preset of the simulator. It will set the default values for a 56k Spectrum. You can override these settings. If you e.g. set the 'memoryModel' explicitly.",
"default": "spectrum"
},
"zxKeyboard": {
"type": "string",
"enum": [
"spectrum",
"zx81"
],
"description": "Select a keyboard. ZX81 or ZX Spectrum.",
"default": "spectrum"
},
"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
},
"customJoy": {
"type": "object",
"description": "Used to define a custom joystick.",
"properties": {
"fire": {
"type": "object",
"properties": {
"port": {},
"bit": {}
}
},
"fire2": {
"type": "object",
"properties": {
"port": {},
"bit": {}
}
},
"fire3": {
"type": "object",
"properties": {
"port": {},
"bit": {}
}
},
"fire4": {
"type": "object",
"properties": {
"port": {},
"bit": {}
}
},
"left": {
"type": "object",
"properties": {
"port": {},
"bit": {}
}
},
"down": {
"type": "object",
"properties": {
"port": {},
"bit": {}
}
},
"up": {
"type": "object",
"properties": {
"port": {},
"bit": {}
}
},
"right": {
"type": "object",
"properties": {
"port": {},
"bit": {}
}
}
}
},
"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",
"enum": [
"RAM",
"ZX16K",
"ZX48K",
"ZX128K",
"ZXNEXT",
"ZX81-1K",
"ZX81-2K",
"ZX81-16K",
"ZX81-32K",
"ZX81-48K",
"ZX81-56K",
"ColecoVision",
"CUSTOM"
],
"description": "Chooses the right memory model. I.e. how the memory maps to ROM and RAM and if and how paging is done.\nA few examples:\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- 'ZX81-16K': ROM and RAM as of a 16k ZX81.\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
},
"defaultFill": {
"type": [
"number",
"string"
],
"description": "Optional default byte fill value. If omitted: RAM/ROM uses 0.",
"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": "string",
"enum": [
"spectrum",
"zx81"
],
"description": "If defined it shows the contents of the ZX Spectrum (\"spectrum\") or ZX81 (\"zx81\") screen. It supports also the ZX128K screen switching.",
"default": null
},
"ulaOptions": {
"type": "object",
"properties": {
"hires": {
"type": "boolean",
"description": "ZX81 only. If true the generation of the screen output by the cpu is simulated. This allows to display hires programs. If false the ZX81 dfile is converted directly into screen graphics. This can be an advantage when debugging a non-hires game. Defaults to true.",
"default": true
},
"lines": {
"type": "array",
"description": "Used to define lines that are drawn on the screen area for orientation.",
"default": [],
"items": {
"type": "object",
"properties": {
"x1": {
"type": "string",
"description": "Start x position of the line."
},
"y1": {
"type": "string",
"description": "Start y position of the line."
},
"x2": {
"type": "string",
"description": "End x position of the line."
},
"y2": {
"type": "string",
"description": "End y position of the line."
}
}
}
},
"firstLine": {
"type": "number",
"description": "Used only if \"hires\" is true. The first line that should be displayed. Defaults to 56.",
"default": 56
},
"lastLine": {
"type": "number",
"description": "Used only if \"hires\" is true. The last line (inclusive) that should be displayed. Defaults to 247.",
"default": 247
},
"showStandardLines": {
"type": "boolean",
"description": "In some modes (e.g. zx81/hires) this shows some lines over the display for the borders or the start of the HSYNC pulse.",
"default": false
},
"chroma81": {
"type": "object",
"properties": {
"available": {
"type": "boolean",
"description": "ZX81 only. If true the chroma81 is 'attached' and can be accessed through in/out port 0x7FEF.",
"default": true
},
"enabled": {
"type": "boolean",
"description": "Initial enable state. I.e. you can enable the chroma81 here right from the start without the need to write to a port.",
"default": false
},
"mode": {
"type": "number",
"enum": [
0,
1
],
"description": "The initial mode (if 'enabled' is true).",
"default": 0
},
"borderColor": {
"type": "number",
"description": "The initial border color (if 'enabled' is true). Colors 0-15 like Spectrum colors.",
"default": 0
}
}
},
"debug": {
"type": "boolean",
"description": "ZX81 only. If true a gray background is shown for the screen areas without output. Only makes a difference for collapsed dfiles, i.e. only for ZX81 with 1-2k memory. Defaults to false.",
"default": false
}
},
"description": "Several options for the ZX81 and ZX Spectrum ULA screen.",
"default": {}
},
"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
},
"cpuLoad": {
"type": "number",
"description": "The CPU load is calculated by the number of executed HALT tStates vs all tStates. You can disable the display with a 0. 1 will exactly count till the next occurrence of a HALT. Higher numbers will average over more HALT instructions and lead to a more stable display. Practical values are around 10 (the default).",
"default": 10
},
"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": "boolean",
"description": "If enabled the simulated CPU performance is throttled to fit the given CPU 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. Allowed is 255 or 0. 255 also sets the port as 'Open Collector', all triggered ports would be ANDed. Default to 0xFF.",
"default": 255
},
"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
},
"tbblue": {
"description": "Experimental. Use to enable some specific tbblue features.",
"REG_TURBO_MODE": {
"type": "boolean",
"description": "If true the register 0x07 is simulated which controls the CPU speed.",
"default": false
}
},
"customCode": {
"description": "This enables custom code to run inside the simulator, e.g. to simulate additional ports.",
"properties": {
"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": {