1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00

Adjusted Atari2600 actually to use the nominated type of bus extender.

This commit is contained in:
Thomas Harte 2017-08-16 12:57:32 -04:00
parent 06e31f5102
commit 360c8a99a3
2 changed files with 5 additions and 1 deletions

View File

@ -188,7 +188,7 @@ template<class T> class Cartridge:
std::vector<uint8_t> rom_;
private:
BusExtender bus_extender_;
T bus_extender_;
};
}

View File

@ -9,11 +9,15 @@
#ifndef Atari2600_CartridgeCommaVid_hpp
#define Atari2600_CartridgeCommaVid_hpp
#include "Cartridge.hpp"
namespace Atari2600 {
namespace Cartridge {
class CommaVid: public BusExtender {
public:
CommaVid(uint8_t *rom_base, size_t rom_size) : BusExtender(rom_base, rom_size) {}
void perform_bus_operation(CPU::MOS6502::BusOperation operation, uint16_t address, uint8_t *value) {
if(!(address & 0x1000)) return;
address &= 0x1fff;