1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-25 18:33:11 +00:00

log clocks at start of scanline; added everything to Platforms menu

This commit is contained in:
Steven Hugg 2019-08-25 17:17:03 -04:00
parent d8421fee7f
commit f32009ca0b
5 changed files with 410 additions and 397 deletions

View File

@ -147,13 +147,21 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
<a tabindex="-1" href="#">Game Consoles</a> <a tabindex="-1" href="#">Game Consoles</a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a class="dropdown-item" href="?platform=vcs">Atari 2600</a></li> <li><a class="dropdown-item" href="?platform=vcs">Atari 2600</a></li>
<li><a class="dropdown-item" href="?platform=astrocade">Bally Astrocade</a></li>
<li><a class="dropdown-item" href="?platform=coleco">ColecoVision</a></li>
<li><a class="dropdown-item" href="?platform=nes">NES</a></li> <li><a class="dropdown-item" href="?platform=nes">NES</a></li>
<li><a class="dropdown-item" href="?platform=sms-sg1000-libcv">Sega SG-1000</a></li>
<li><a class="dropdown-item" href="?platform=sms-sms-libcv">Sega Master System</a></li>
<li><a class="dropdown-item" href="?platform=atari7800">Atari 7800</a></li>
</ul> </ul>
</li> </li>
<li class="dropdown dropdown-submenu"> <li class="dropdown dropdown-submenu">
<a tabindex="-1" href="#">Computers</a> <a tabindex="-1" href="#">Computers</a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a class="dropdown-item" href="?platform=apple2">Apple ][+</a></li> <li><a class="dropdown-item" href="?platform=apple2">Apple ][+</a></li>
<li><a class="dropdown-item" href="?platform=c64">Commodore 64</a></li>
<li><a class="dropdown-item" href="?platform=msx">MSX (BIOS)</a></li>
<li><a class="dropdown-item" href="?platform=msx-libcv">MSX (libCV)</a></li>
</ul> </ul>
</li> </li>
<li class="dropdown dropdown-submenu"> <li class="dropdown dropdown-submenu">
@ -178,8 +186,8 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
<a tabindex="-1" href="#">Other</a> <a tabindex="-1" href="#">Other</a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a class="dropdown-item" href="?platform=vcs.mame">Atari 2600 (MAME)</a></li> <li><a class="dropdown-item" href="?platform=vcs.mame">Atari 2600 (MAME)</a></li>
<li><a class="dropdown-item" href="?platform=nes.mame">NES (MAME)</a></li>
<li><a class="dropdown-item" href="?platform=vector-ataricolor">Atari Color Vector (6502)</a></li> <li><a class="dropdown-item" href="?platform=vector-ataricolor">Atari Color Vector (6502)</a></li>
<li><a class="dropdown-item" href="?platform=nes.mame">NES (MAME)</a></li>
<li><a class="dropdown-item" href="?platform=markdown">Markdown</a></li> <li><a class="dropdown-item" href="?platform=markdown">Markdown</a></li>
</ul> </ul>
</li> </li>

View File

@ -360,6 +360,7 @@ export abstract class BasicScanlineMachine extends BasicMachine implements Raste
} }
this.drawScanline(); this.drawScanline();
this.probe.logNewScanline(); this.probe.logNewScanline();
this.probe.logClocks(clock-endLineClock);
} }
this.postFrame(); this.postFrame();
return clock; return clock;

View File

@ -231,8 +231,8 @@ const _GalaxianPlatform = function(mainElement, options) {
read: newAddressDecoder([ read: newAddressDecoder([
[0x0000, 0x3fff, 0, function(a) { return rom ? rom[a] : null; }], [0x0000, 0x3fff, 0, function(a) { return rom ? rom[a] : null; }],
[0x4000, 0x47ff, 0x7ff, function(a) { return ram.mem[a]; }], [0x4000, 0x47ff, 0x7ff, function(a) { return ram.mem[a]; }],
// [0x4800, 0x4fff, 0x3ff, function(a) { return vram.mem[a]; }], [0x4800, 0x4fff, 0x3ff, function(a) { return vram.mem[a]; }],
// [0x5000, 0x5fff, 0xff, function(a) { return oram.mem[a]; }], [0x5000, 0x5fff, 0xff, function(a) { return oram.mem[a]; }],
[0x7000, 0x7000, 0, function(a) { watchdog_counter = INITIAL_WATCHDOG; }], [0x7000, 0x7000, 0, function(a) { watchdog_counter = INITIAL_WATCHDOG; }],
[0x7800, 0x7800, 0, function(a) { watchdog_counter = INITIAL_WATCHDOG; }], [0x7800, 0x7800, 0, function(a) { watchdog_counter = INITIAL_WATCHDOG; }],
//[0x8000, 0x820f, 0, function(a) { return noise(); }], // TODO: remove //[0x8000, 0x820f, 0, function(a) { return noise(); }], // TODO: remove

View File

@ -1043,9 +1043,9 @@ abstract class ProbeBitmapViewBase extends ProbeViewBase {
switch (op) { switch (op) {
case ProbeFlags.EXECUTE: return 0x0f3f0f; case ProbeFlags.EXECUTE: return 0x0f3f0f;
case ProbeFlags.MEM_READ: return 0x3f0101; case ProbeFlags.MEM_READ: return 0x3f0101;
case ProbeFlags.MEM_WRITE: return 0x000f3f; case ProbeFlags.MEM_WRITE: return 0x010f3f;
case ProbeFlags.IO_READ: return 0x001f01; case ProbeFlags.IO_READ: return 0x001f01;
case ProbeFlags.IO_WRITE: return 0x003f3f; case ProbeFlags.IO_WRITE: return 0x017f7f;
case ProbeFlags.INTERRUPT: return 0x3f3f00; case ProbeFlags.INTERRUPT: return 0x3f3f00;
default: return 0; default: return 0;
} }
@ -1091,8 +1091,12 @@ export class RasterPCHeatMapView extends ProbeBitmapViewBase implements ProjectV
drawEvent(op, addr, col, row) { drawEvent(op, addr, col, row) {
// if (op != ProbeFlags.EXECUTE) return; // if (op != ProbeFlags.EXECUTE) return;
var iofs = col + row * this.canvas.width; var iofs = col + row * this.canvas.width;
var rgb = addr << 8; //var rgb = addr << 8;
this.datau32[iofs] = rgb | 0xff000000; var rgb = this.getOpRGB(op) << 1;
var data = this.datau32[iofs];
rgb |= addr & 0x3f3f;
data = data | rgb | 0xff000000;
this.datau32[iofs] = data;
} }
} }