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

Function _Bookmark_Del

source/Debugger/Debug.cpp:516–533  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

514
515//===========================================================================
516bool _Bookmark_Del( const WORD nAddress )
517{
518 bool bDeleted = false;
519
520// int nSize = g_aBookmarks.size();
521 int iBookmark;
522 for (iBookmark = 0; iBookmark < MAX_BOOKMARKS; iBookmark++ )
523 {
524 if (g_aBookmarks[ iBookmark ].nAddress == nAddress)
525 {
526// g_aBookmarks.at( iBookmark ) = NO_6502_TARGET;
527 g_aBookmarks[ iBookmark ].bSet = false;
528 g_nBookmarks--;
529 bDeleted = true;
530 }
531 }
532 return bDeleted;
533}
534
535// Returns:
536// 0 if address does not have a bookmark set

Callers 2

CmdBookmarkAddFunction · 0.85
CmdBookmarkClearFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected