1
0
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:
Thomas Harte
2025-11-04 17:45:27 -05:00
parent 4df01a7e0d
commit 78073aaa11
4 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -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) {}
+7 -3
View File
@@ -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) {}