DummyIDEDevice.cc 804 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #include "DummyIDEDevice.hh"
  2. #include "serialize.hh"
  3. namespace openmsx {
  4. void DummyIDEDevice::reset(EmuTime::param /*time*/)
  5. {
  6. // do nothing
  7. }
  8. word DummyIDEDevice::readData(EmuTime::param /*time*/)
  9. {
  10. return 0x7F7F;
  11. }
  12. byte DummyIDEDevice::readReg(nibble /*reg*/, EmuTime::param /*time*/)
  13. {
  14. return 0x7F;
  15. }
  16. void DummyIDEDevice::writeData(word /*value*/, EmuTime::param /*time*/)
  17. {
  18. // do nothing
  19. }
  20. void DummyIDEDevice::writeReg(nibble /*reg*/, byte /*value*/,
  21. EmuTime::param /*time*/)
  22. {
  23. // do nothing
  24. }
  25. template<typename Archive>
  26. void DummyIDEDevice::serialize(Archive& /*ar*/, unsigned /*version*/)
  27. {
  28. // nothing
  29. }
  30. INSTANTIATE_SERIALIZE_METHODS(DummyIDEDevice);
  31. REGISTER_POLYMORPHIC_INITIALIZER(IDEDevice, DummyIDEDevice, "DummyIDEDevice");
  32. } // namespace openmsx