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:
@@ -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) {}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -85,7 +85,8 @@ enum Name {
|
||||
BBCMicroDFS226,
|
||||
BBCMicroADFS130,
|
||||
BBCMicroAdvancedDiscToolkit140,
|
||||
BBCMicroTube110,
|
||||
BBCMicro6502Tube110,
|
||||
BBCMicroZ80Tube122,
|
||||
|
||||
// ColecoVision.
|
||||
ColecoVisionBIOS,
|
||||
|
||||
Reference in New Issue
Block a user