prevent more button pushes before first loadROM(); use latest version menu item

This commit is contained in:
Steven Hugg 2019-05-21 13:54:51 -04:00
parent 31356a7b5f
commit 98423c7fa2
3 changed files with 15 additions and 4 deletions

View File

@ -539,3 +539,6 @@ div.asset_toolbar {
.control-def {
color: #ccc;
}
.book-title {
font-size:14pt;
}

View File

@ -159,6 +159,9 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
</li>
</ul>
</li>
<!--
<hr><li><a class="dropdown-item" href="/redir.html">Use Latest Version</a></li>
-->
</ul>
</span>
@ -188,19 +191,19 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
<li>
<a class="dropdown-item dropdown-link" target="_book_a2600" href="https://www.amazon.com/gp/product/1541021304/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=pzp-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B01N4DSRIZ&linkId=04d39e274c06e6c93b93d20a9a977111">
<img src="images/book_a2600.png"/>
&nbsp;&nbsp;<b>Making Games For The Atari 2600</b>
&nbsp;&nbsp;<span class="book-title">Making Games For The Atari 2600</span>
</a>
</li>
<li>
<a class="dropdown-item dropdown-link" target="_book_arcade" href="https://www.amazon.com/gp/product/1545484759/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1545484759&linkCode=as2&tag=pzp-20&linkId=b27709c022d2ebe639e90316d9f4fd5b">
<img src="images/book_arcade.png"/>
&nbsp;&nbsp;<b>Making 8-bit Arcade Games in C</b>
&nbsp;&nbsp;<span class="book-title">Making 8-bit Arcade Games in C</span>
</a>
</li>
<li>
<a class="dropdown-item dropdown-link" target="_book_verilog" href="https://www.amazon.com/gp/product/1728619440/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1728619440&linkCode=as2&tag=pzp-20">
<img src="images/book_verilog.png"/>
&nbsp;&nbsp;<b>Designing Video Game Hardware in Verilog</b>
&nbsp;&nbsp;<span class="book-title">Designing Video Game Hardware in Verilog</span>
</a>
</li>
</ul>

View File

@ -1003,7 +1003,7 @@ function setDebugButtonState(btnid:string, btnstate:string) {
function checkRunReady() {
if (current_output == null) {
alertError("Can't resume emulation until ROM is successfully built.");
alertError("Can't do this until build successfully completes.");
return false;
} else
return true;
@ -1070,11 +1070,13 @@ function togglePause() {
}
function singleStep() {
if (!checkRunReady()) return;
setupBreakpoint("step");
platform.step();
}
function singleFrameStep() {
if (!checkRunReady()) return;
setupBreakpoint("tovsync");
platform.runToVsync();
}
@ -1101,11 +1103,13 @@ function runToCursor() {
}
function runUntilReturn() {
if (!checkRunReady()) return;
setupBreakpoint("stepout");
platform.runUntilReturn();
}
function runStepBackwards() {
if (!checkRunReady()) return;
setupBreakpoint("stepback");
platform.stepBack();
}
@ -1118,6 +1122,7 @@ function clearBreakpoint() {
}
function resetAndDebug() {
if (!checkRunReady()) return;
_disableRecording();
if (platform.setupDebug && platform.readAddress) { // TODO??
clearBreakpoint();