2016-06-05 01:43:50 +00:00
|
|
|
//
|
|
|
|
// Vic20.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 04/06/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef Vic20_hpp
|
|
|
|
#define Vic20_hpp
|
|
|
|
|
2017-11-19 00:48:10 +00:00
|
|
|
#include "../../../Configurable/Configurable.hpp"
|
2016-07-10 16:57:17 +00:00
|
|
|
|
2016-07-05 17:28:27 +00:00
|
|
|
namespace Commodore {
|
2016-06-05 01:43:50 +00:00
|
|
|
namespace Vic20 {
|
|
|
|
|
2016-08-13 21:21:25 +00:00
|
|
|
enum MemorySize {
|
|
|
|
Default,
|
|
|
|
ThreeKB,
|
|
|
|
ThirtyTwoKB
|
|
|
|
};
|
|
|
|
|
2016-08-14 17:33:20 +00:00
|
|
|
enum Region {
|
2017-11-08 02:19:51 +00:00
|
|
|
American,
|
|
|
|
Danish,
|
|
|
|
Japanese,
|
|
|
|
European,
|
|
|
|
Swedish
|
2016-08-14 17:33:20 +00:00
|
|
|
};
|
|
|
|
|
2017-11-21 02:55:32 +00:00
|
|
|
/// @returns The options available for a Vic-20.
|
|
|
|
std::vector<std::unique_ptr<Configurable::Option>> get_options();
|
|
|
|
|
2018-03-09 20:19:02 +00:00
|
|
|
class Machine {
|
2016-06-05 02:00:50 +00:00
|
|
|
public:
|
2017-08-16 20:05:30 +00:00
|
|
|
virtual ~Machine();
|
2016-12-03 18:30:27 +00:00
|
|
|
|
2017-08-16 20:23:33 +00:00
|
|
|
/// Creates and returns a Vic-20.
|
2017-08-16 20:05:30 +00:00
|
|
|
static Machine *Vic20();
|
2016-06-05 20:00:35 +00:00
|
|
|
|
2017-08-16 20:23:33 +00:00
|
|
|
/// Sets the memory size of this Vic-20.
|
2017-08-16 20:05:30 +00:00
|
|
|
virtual void set_memory_size(MemorySize size) = 0;
|
2017-08-16 20:23:33 +00:00
|
|
|
|
|
|
|
/// Sets the region of this Vic-20.
|
2017-08-16 20:05:30 +00:00
|
|
|
virtual void set_region(Region region) = 0;
|
2016-06-05 01:43:50 +00:00
|
|
|
};
|
|
|
|
|
2016-07-05 17:28:27 +00:00
|
|
|
}
|
2016-06-05 01:43:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* Vic20_hpp */
|