probe: only show value for certain ops

This commit is contained in:
Steven Hugg 2020-01-04 20:45:27 -06:00
parent 313dc2f863
commit 167b5aa2d8
3 changed files with 9 additions and 2 deletions

View File

@ -122,6 +122,7 @@ import { Probeable, ProbeAll } from "./devices";
export enum ProbeFlags {
CLOCKS = 0x00000000,
EXECUTE = 0x01000000,
HAS_VALUE = 0x10000000,
MEM_READ = 0x12000000,
MEM_WRITE = 0x13000000,
IO_READ = 0x14000000,

View File

@ -1661,10 +1661,16 @@ function showWelcomeMessage() {
// Instance the tour
var is_vcs = platform_id.startsWith('vcs');
var steps = [
{
element: "#dropdownMenuButton",
placement: 'right',
title: "Cookie Consent",
content: 'Before we start, we should tell you that this website stores cookies and other data in your browser. You can review our <a href="/privacy.html" target="_new">privacy policy</a>.'
},
{
element: "#platformsMenuButton",
placement: 'right',
title: "Welcome to 8bitworkshop!",
title: "Platform Selector",
content: "You're currently on the \"<b>" + platform_id + "</b>\" platform. You can choose a different one from the menu."
},
{

View File

@ -913,7 +913,7 @@ abstract class ProbeViewBaseBase {
default: return "";
}
if (typeof addr == 'number') s += " " + this.addr2str(addr);
if (typeof value == 'number') s += " = $" + hex(value,2);
if ((op & ProbeFlags.HAS_VALUE) && typeof value == 'number') s += " = $" + hex(value,2);
return s;
}
getOpRGB(op:number) : number {