1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-01-23 16:16:16 +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

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) {}

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) {}

View File

@@ -454,13 +454,21 @@ const std::vector<Description> &Description::all_roms() {
0x8314fed0u
},
{
BBCMicroTube110,
BBCMicro6502Tube110,
"BBCMicro",
"the Tube 1.10 Boot ROM",
"the 6502 Tube 1.10 Boot ROM",
"TUBE110.rom",
2_kb,
0x9ec2dbd0u
},
{
BBCMicroZ80Tube122,
"BBCMicro",
"the Z80 Tube 1.22 Boot ROM",
"Z80_122.rom",
4_kb,
0xb5851efcu
},
//
// ColecoVision.

View File

@@ -85,7 +85,8 @@ enum Name {
BBCMicroDFS226,
BBCMicroADFS130,
BBCMicroAdvancedDiscToolkit140,
BBCMicroTube110,
BBCMicro6502Tube110,
BBCMicroZ80Tube122,
// ColecoVision.
ColecoVisionBIOS,