2018-02-07 15:20:26 +00:00
|
|
|
#ifndef __NIXCLOCK_H
|
|
|
|
#define __NIXCLOCK_H
|
2017-03-01 04:44:03 +00:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2018-02-07 15:20:26 +00:00
|
|
|
#include "slot.h"
|
2017-03-01 04:44:03 +00:00
|
|
|
#include "applemmu.h"
|
|
|
|
|
2018-02-07 15:20:26 +00:00
|
|
|
// Simple clock for *nix
|
|
|
|
|
|
|
|
class NixClock : public Slot {
|
2017-03-01 04:44:03 +00:00
|
|
|
public:
|
2018-02-07 15:20:26 +00:00
|
|
|
NixClock(AppleMMU *mmu);
|
|
|
|
virtual ~NixClock();
|
2017-03-01 04:44:03 +00:00
|
|
|
|
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
|