2017-02-20 23:41:46 +00:00
|
|
|
#ifndef __PARALLELCARD_H
|
|
|
|
#define __PARALLELCARD_H
|
|
|
|
|
|
|
|
#ifdef TEENSYDUINO
|
|
|
|
#include <Arduino.h>
|
|
|
|
#else
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "applemmu.h"
|
2018-02-07 15:20:26 +00:00
|
|
|
#include "slot.h"
|
2017-02-20 23:41:46 +00:00
|
|
|
|
|
|
|
class Fx80;
|
|
|
|
|
|
|
|
class ParallelCard : public Slot {
|
|
|
|
public:
|
|
|
|
ParallelCard();
|
|
|
|
virtual ~ParallelCard();
|
|
|
|
|
2017-12-30 20:20:34 +00:00
|
|
|
virtual bool Serialize(int8_t fd);
|
|
|
|
virtual bool Deserialize(int8_t fd);
|
|
|
|
|
2017-02-20 23:41:46 +00:00
|
|
|
virtual void Reset(); // used by BIOS cold-boot
|
|
|
|
virtual uint8_t readSwitches(uint8_t s);
|
|
|
|
virtual void writeSwitches(uint8_t s, uint8_t v);
|
|
|
|
virtual void loadROM(uint8_t *toWhere);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Fx80 *fx80;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|