2017-03-01 04:44:03 +00:00
|
|
|
#ifndef __SDLCLOCK_H
|
|
|
|
#define __SDLCLOCK_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2017-07-14 00:31:47 +00:00
|
|
|
#include "Slot.h"
|
2017-03-01 04:44:03 +00:00
|
|
|
#include "applemmu.h"
|
|
|
|
|
|
|
|
class SDLClock : public Slot {
|
|
|
|
public:
|
|
|
|
SDLClock(AppleMMU *mmu);
|
|
|
|
virtual ~SDLClock();
|
|
|
|
|
2017-12-30 20:20:34 +00:00
|
|
|
virtual bool Serialize(int8_t fd);
|
|
|
|
virtual bool Deserialize(int8_t fd);
|
|
|
|
|
2017-03-01 04:44:03 +00:00
|
|
|
virtual void Reset();
|
|
|
|
|
|
|
|
virtual uint8_t readSwitches(uint8_t s);
|
|
|
|
virtual void writeSwitches(uint8_t s, uint8_t v);
|
|
|
|
|
|
|
|
virtual void loadROM(uint8_t *toWhere);
|
|
|
|
|
|
|
|
private:
|
|
|
|
AppleMMU *mmu;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|