openMSX
WatchPoint.cc
Go to the documentation of this file.
1 #include "WatchPoint.hh"
2 #include <cassert>
3 
4 namespace openmsx {
5 
6 unsigned WatchPoint::lastId = 0;
7 
9  Type type_, unsigned beginAddr_, unsigned endAddr_,
10  bool once_, unsigned newId /*= -1*/)
11  : BreakPointBase(command_, condition_, once_)
12  , id((newId == unsigned(-1)) ? ++lastId : newId)
13  , beginAddr(beginAddr_), endAddr(endAddr_), type(type_)
14 {
15  assert(beginAddr <= endAddr);
16 }
17 
18 } // namespace openmsx
WatchPoint(TclObject command, TclObject condition, Type type, unsigned beginAddr, unsigned endAddr, bool once, unsigned newId=-1)
Begin and end address are inclusive (IOW range = [begin, end])
Definition: WatchPoint.cc:8
Base class for CPU break and watch points.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5