mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-12-23 03:29:39 +00:00
prevent more button pushes before first loadROM(); use latest version menu item
This commit is contained in:
parent
31356a7b5f
commit
98423c7fa2
@ -539,3 +539,6 @@ div.asset_toolbar {
|
|||||||
.control-def {
|
.control-def {
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
|
.book-title {
|
||||||
|
font-size:14pt;
|
||||||
|
}
|
||||||
|
@ -159,6 +159,9 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<!--
|
||||||
|
<hr><li><a class="dropdown-item" href="/redir.html">Use Latest Version</a></li>
|
||||||
|
-->
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@ -188,19 +191,19 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
|
|||||||
<li>
|
<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">
|
<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"/>
|
<img src="images/book_a2600.png"/>
|
||||||
<b>Making Games For The Atari 2600</b>
|
<span class="book-title">Making Games For The Atari 2600</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<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">
|
<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"/>
|
<img src="images/book_arcade.png"/>
|
||||||
<b>Making 8-bit Arcade Games in C</b>
|
<span class="book-title">Making 8-bit Arcade Games in C</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<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">
|
<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"/>
|
<img src="images/book_verilog.png"/>
|
||||||
<b>Designing Video Game Hardware in Verilog</b>
|
<span class="book-title">Designing Video Game Hardware in Verilog</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -1003,7 +1003,7 @@ function setDebugButtonState(btnid:string, btnstate:string) {
|
|||||||
|
|
||||||
function checkRunReady() {
|
function checkRunReady() {
|
||||||
if (current_output == null) {
|
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;
|
return false;
|
||||||
} else
|
} else
|
||||||
return true;
|
return true;
|
||||||
@ -1070,11 +1070,13 @@ function togglePause() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function singleStep() {
|
function singleStep() {
|
||||||
|
if (!checkRunReady()) return;
|
||||||
setupBreakpoint("step");
|
setupBreakpoint("step");
|
||||||
platform.step();
|
platform.step();
|
||||||
}
|
}
|
||||||
|
|
||||||
function singleFrameStep() {
|
function singleFrameStep() {
|
||||||
|
if (!checkRunReady()) return;
|
||||||
setupBreakpoint("tovsync");
|
setupBreakpoint("tovsync");
|
||||||
platform.runToVsync();
|
platform.runToVsync();
|
||||||
}
|
}
|
||||||
@ -1101,11 +1103,13 @@ function runToCursor() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function runUntilReturn() {
|
function runUntilReturn() {
|
||||||
|
if (!checkRunReady()) return;
|
||||||
setupBreakpoint("stepout");
|
setupBreakpoint("stepout");
|
||||||
platform.runUntilReturn();
|
platform.runUntilReturn();
|
||||||
}
|
}
|
||||||
|
|
||||||
function runStepBackwards() {
|
function runStepBackwards() {
|
||||||
|
if (!checkRunReady()) return;
|
||||||
setupBreakpoint("stepback");
|
setupBreakpoint("stepback");
|
||||||
platform.stepBack();
|
platform.stepBack();
|
||||||
}
|
}
|
||||||
@ -1118,6 +1122,7 @@ function clearBreakpoint() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function resetAndDebug() {
|
function resetAndDebug() {
|
||||||
|
if (!checkRunReady()) return;
|
||||||
_disableRecording();
|
_disableRecording();
|
||||||
if (platform.setupDebug && platform.readAddress) { // TODO??
|
if (platform.setupDebug && platform.readAddress) { // TODO??
|
||||||
clearBreakpoint();
|
clearBreakpoint();
|
||||||
|
Loading…
Reference in New Issue
Block a user