1#ifndef MSXWATCHIODEVICE_HH
2#define MSXWATCHIODEVICE_HH
10class MSXWatchIODevice;
13 ,
public std::enable_shared_from_this<WatchIO>
18 unsigned beginAddr,
unsigned endAddr,
20 bool once,
unsigned newId = -1);
25 void doReadCallback(
unsigned port);
26 void doWriteCallback(
unsigned port,
unsigned value);
30 std::vector<std::unique_ptr<MSXWatchIODevice>> ios;
44 [[nodiscard]]
const std::string& getName()
const override;
45 [[nodiscard]]
byte readIO(
word port, EmuTime::param time)
override;
46 [[nodiscard]]
byte peekIO(
word port, EmuTime::param time)
const override;
47 void writeIO(
word port,
byte value, EmuTime::param time)
override;
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
MSXDevice *& getDevicePtr()
MSXWatchIODevice(const HardwareConfig &hwConf, WatchIO &watchIO)
MSXWatchIODevice & getDevice(byte port)
WatchIO(MSXMotherBoard &motherboard, WatchPoint::Type type, unsigned beginAddr, unsigned endAddr, TclObject command, TclObject condition, bool once, unsigned newId=-1)
Base class for CPU breakpoints.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer