From ccd0731b144bcef4cc8d315ef30e6c731d53b144 Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Wed, 12 Sep 2018 20:54:25 -0400 Subject: [PATCH] new global kbd shortcuts; vcs show bank offset; effective PC (c.EPC) for bankswitching debugging --- css/ui.css | 9 +- doc/notes.txt | 8 +- index.html | 4 +- lib/mousetrap-global-bind.min.js | 1 + presets/vcs/examples/bankswitching.a | 50 ++++++---- presets/vcs/examples/tigervision[3E].a | 77 +++++++++++++++ src/platform/vcs.ts | 10 +- src/platform/verilog.ts | 5 +- src/ui.ts | 44 ++++++--- src/views.ts | 6 +- src/vlist.js | 1 + src/waveform.ts | 38 +++---- testwave.html | 131 ++++--------------------- 13 files changed, 201 insertions(+), 183 deletions(-) create mode 100644 lib/mousetrap-global-bind.min.js create mode 100644 presets/vcs/examples/tigervision[3E].a diff --git a/css/ui.css b/css/ui.css index 1a6aba35..91ac2d86 100644 --- a/css/ui.css +++ b/css/ui.css @@ -212,7 +212,7 @@ a.dropdown-toggle { } div.emulator { position:absolute; - left:50%; + right:0; top:0; width:50%; height:100%; @@ -318,8 +318,9 @@ div.replaydiv { background-position: 50%; } .gutter.gutter-vertical { - background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=') + background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII='); } .gutter.gutter-horizontal { - background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==') -} \ No newline at end of file + background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg=='); + height:100%; +} diff --git a/doc/notes.txt b/doc/notes.txt index 191cbab5..49127078 100644 --- a/doc/notes.txt +++ b/doc/notes.txt @@ -40,7 +40,6 @@ TODO: - compile stuck when errors unchanged - sound mute? - $error updates source editor -- Verilog compile spins forever? - go to error in include files - BOM in upload/download? - online tools for music etc @@ -53,14 +52,10 @@ TODO: - better VCS single stepping, maybe also listings - New File (include file) - VCS skips step on lsr/lsr after run to line -- update window list after building 2nd time? -- stop debugging where mouse clicked - bring back the profiler! -- vcs disasm is broken - links to external tools in ide - error msg when #link doesn't work - figure out folders for projects for real -- verilog download rom - why loadState() on verilog kill perf? - click to break on raster position - restructure folders @@ -68,6 +63,9 @@ TODO: - spinner disappears sometimes (and compiles even when not spinning...) (undo?) - z80 illegal opcode kills platform - quantify verilog "graph iterations" +- debug bankswitching for funky formats +- "invalid ROM" error should show up better +- spaces in filename don't parse code listing (DASM, maybe more) WEB WORKER FORMAT diff --git a/index.html b/index.html index 7b91f479..d9b15971 100644 --- a/index.html +++ b/index.html @@ -182,7 +182,7 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
-
+