mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-26 03:29:40 +00:00
Add Z80 tube ROM.
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Acorn::Tube {
|
||||
template <typename ULAT>
|
||||
struct Tube6502 {
|
||||
public:
|
||||
static constexpr auto ROM = ROM::Name::BBCMicroTube110;
|
||||
static constexpr auto ROM = ROM::Name::BBCMicro6502Tube110;
|
||||
|
||||
Tube6502(ULAT &ula) : m6502_(*this), ula_(ula) {}
|
||||
|
||||
|
||||
@@ -11,14 +11,18 @@
|
||||
#include "Processors/Z80/Z80.hpp"
|
||||
#include "Machines/Utility/ROMCatalogue.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace Acorn::Tube {
|
||||
|
||||
template <typename ULAT>
|
||||
struct TubeZ80: public CPU::Z80::BusHandler {
|
||||
public:
|
||||
// TODO.
|
||||
static constexpr auto ROM = ROM::Name::BBCMicroTube110;
|
||||
void set_rom(const std::vector<uint8_t> &) {}
|
||||
static constexpr auto ROM = ROM::Name::BBCMicroZ80Tube122;
|
||||
void set_rom(std::vector<uint8_t> rom) {
|
||||
rom.resize(sizeof(rom_));
|
||||
std::copy(rom.begin(), rom.end(), std::begin(rom_));
|
||||
}
|
||||
|
||||
TubeZ80(ULAT &ula) : z80_(*this), ula_(ula) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user