Welcome, this is the discussion board of TASVideos.
The value written to the $8000 would be saved to "written_value". even if this wouldn't work as is, it should give a good idea on what I'm trying to do. If it is possible to actually create a breakpoint condition in the debugger that does the same thing, it'll do just as well.
if((written_value AND 7) == 6 || (written_value AND 7) == 7) then debugger.hitbreakpoint(); written_value = 0; end;