2017-02-19 23:55:54 +00:00
|
|
|
#ifndef __APPLEVM_H
|
|
|
|
#define __APPLEVM_H
|
|
|
|
|
|
|
|
#include "cpu.h"
|
|
|
|
#include "appledisplay.h"
|
|
|
|
#include "diskii.h"
|
|
|
|
#include "vmkeyboard.h"
|
2017-02-20 23:41:46 +00:00
|
|
|
#include "parallelcard.h"
|
2017-02-19 23:55:54 +00:00
|
|
|
#ifdef TEENSYDUINO
|
|
|
|
#include "teensy-clock.h"
|
2017-03-01 04:44:03 +00:00
|
|
|
#else
|
|
|
|
#include "sdl-clock.h"
|
2017-02-19 23:55:54 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "vm.h"
|
|
|
|
class AppleVM : public VM {
|
|
|
|
public:
|
|
|
|
AppleVM();
|
|
|
|
virtual ~AppleVM();
|
|
|
|
|
|
|
|
void cpuMaintenance(uint32_t cycles);
|
|
|
|
|
|
|
|
virtual void Reset();
|
|
|
|
void Monitor();
|
|
|
|
|
|
|
|
virtual void triggerPaddleInCycles(uint8_t paddleNum,uint16_t cycleCount);
|
|
|
|
|
|
|
|
const char *DiskName(uint8_t drivenum);
|
|
|
|
void ejectDisk(uint8_t drivenum);
|
|
|
|
void insertDisk(uint8_t drivenum, const char *filename, bool drawIt = true);
|
|
|
|
|
|
|
|
virtual VMKeyboard *getKeyboard();
|
|
|
|
|
|
|
|
DiskII *disk6;
|
2017-02-27 00:59:51 +00:00
|
|
|
protected:
|
2017-02-19 23:55:54 +00:00
|
|
|
VMKeyboard *keyboard;
|
2017-02-20 23:41:46 +00:00
|
|
|
ParallelCard *parallel;
|
2017-02-19 23:55:54 +00:00
|
|
|
#ifdef TEENSYDUINO
|
|
|
|
TeensyClock *teensyClock;
|
2017-03-01 04:44:03 +00:00
|
|
|
#else
|
|
|
|
SDLClock *sdlClock;
|
2017-02-19 23:55:54 +00:00
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|