/** lc3_remove_blackbox * * Removes the blackbox from the list of blackboxes * @param lc3_state lc3_state * @param symbol symbol to remove blackbox from */ bool lc3_remove_blackbox(lc3_state& state, const std::string& symbol) { int addr = lc3_sym_lookup(state, symbol); if (addr == -1) return true; return lc3_remove_blackbox(state, addr); }
void do_delete(const std::string& symbol) { lc3_remove_blackbox(state, symbol); lc3_remove_break(state, symbol); lc3_remove_watch(state, symbol); memory->Update(); }
void do_delete(unsigned short address) { lc3_remove_blackbox(state, address); lc3_remove_break(state, address); lc3_remove_watch(state, false, address); memory->Update(); }
/** SetBlackbox * * Sets a blackbox */ void MemoryGrid::OnBlackbox(wxCommandEvent& event) { int addr = -1; addr = GetSelectedRow(); if (addr == -1) return; bool exist = lc3_add_blackbox(state, (unsigned short) addr); if (exist) lc3_remove_blackbox(state, (unsigned short) addr); Refresh(addr); }