Skip to content

Commit

Permalink
Use SetCursor() to busy when loading state file. (Fixes #781)
Browse files Browse the repository at this point in the history
Fixed typos in dbg-bookmarks.html.
  • Loading branch information
tomcw committed Jun 3, 2020
1 parent 105d0d7 commit f238be2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions bin/History.txt
Expand Up @@ -19,6 +19,7 @@ Tom Charlesworth
instead of 'LDA DATASTROBE,X'. So now perhaps less helpful when stepping Disk II code.
. [PR #785] Debugger: Improvements to Bookmarks.
- AppleWin.chm: Added debugger help about Bookmarks.
. Fixed occasional speaker clicks in full-speed mode.


1.29.12.0 - 26 Apr 2020
Expand Down
6 changes: 3 additions & 3 deletions help/dbg-bookmarks.html
Expand Up @@ -7,15 +7,15 @@
<body style="DIRECTION: ltr" lang="en-US">
<h1>Bookmarks</h1>
<p>Bookmarks allow you to "tag" an address and consequently jump back to them.<br>
They appear as a number with a circle around them between address and opcodes are listed (where the : separator is).
They appear as a number with a circle around them between where address and opcodes are listed (where the : separator is).
</p>

<img src="img/debugger-bookmarks-annotated.png" hspace="5" vspace="5">

<br>
<p><font size="4"><b>Notes</b>:</font></p>
<ul>
<li>Set a bookmark a the current disassembly cursor, use Ctrl-Shift-#, ie:
<li>Set a bookmark at the current disassembly cursor, use Ctrl-Shift-#, ie:
<ul>
<li>NB. Ctrl-Shift-0 can't be used, as it's not recognised by Windows
<li>Ctrl-Shift-1 set bookmark 1
Expand All @@ -27,7 +27,7 @@ <h1>Bookmarks</h1>

<br>

<li>To jump to a existing bookmark, if it exists, press Ctrl-#, ie:
<li>To jump to an existing bookmark, if it exists, press Ctrl-#, ie:
<ul>
<li>Ctrl-0 to jump to bookmark 0
<li>Ctrl-1 to jump to bookmark 1
Expand Down
2 changes: 2 additions & 0 deletions source/SaveState.cpp
Expand Up @@ -371,6 +371,7 @@ static void ParseUnit(void)
static void Snapshot_LoadState_v2(void)
{
bool restart = false; // Only need to restart if any VM state has change
HCURSOR oldcursor = SetCursor(LoadCursor(0,IDC_WAIT));

try
{
Expand Down Expand Up @@ -474,6 +475,7 @@ static void Snapshot_LoadState_v2(void)
PostMessage(g_hFrameWindow, WM_USER_RESTART, 0, 0); // Power-cycle VM (undoing all the new state just loaded)
}

SetCursor(oldcursor);
yamlHelper.FinaliseParser();
}

Expand Down

0 comments on commit f238be2

Please sign in to comment.