MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / Bookmark_Find

Function Bookmark_Find

source/Debugger/Debug.cpp:538–552  ·  view source on GitHub ↗

Returns: 0 if address does not have a bookmark set N+1 if there is an existing bookmark that has this address

Source from the content-addressed store, hash-verified

536// 0 if address does not have a bookmark set
537// N+1 if there is an existing bookmark that has this address
538int Bookmark_Find( const WORD nAddress )
539{
540 // Ugh, linear search
541// int nSize = g_aBookmarks.size();
542 int iBookmark;
543 for (iBookmark = 0; iBookmark < MAX_BOOKMARKS; iBookmark++ )
544 {
545 if (g_aBookmarks[ iBookmark ].nAddress == nAddress)
546 {
547 if (g_aBookmarks[ iBookmark ].bSet)
548 return iBookmark + 1;
549 }
550 }
551 return 0;
552}
553
554
555//===========================================================================

Callers 2

DrawDisassemblyLineFunction · 0.85
CmdBookmarkAddFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected