mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 16:31:31 +00:00
Adjusted Atari2600 actually to use the nominated type of bus extender.
This commit is contained in:
parent
06e31f5102
commit
360c8a99a3
@ -188,7 +188,7 @@ template<class T> class Cartridge:
|
|||||||
std::vector<uint8_t> rom_;
|
std::vector<uint8_t> rom_;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BusExtender bus_extender_;
|
T bus_extender_;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,11 +9,15 @@
|
|||||||
#ifndef Atari2600_CartridgeCommaVid_hpp
|
#ifndef Atari2600_CartridgeCommaVid_hpp
|
||||||
#define Atari2600_CartridgeCommaVid_hpp
|
#define Atari2600_CartridgeCommaVid_hpp
|
||||||
|
|
||||||
|
#include "Cartridge.hpp"
|
||||||
|
|
||||||
namespace Atari2600 {
|
namespace Atari2600 {
|
||||||
namespace Cartridge {
|
namespace Cartridge {
|
||||||
|
|
||||||
class CommaVid: public BusExtender {
|
class CommaVid: public BusExtender {
|
||||||
public:
|
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) {
|
void perform_bus_operation(CPU::MOS6502::BusOperation operation, uint16_t address, uint8_t *value) {
|
||||||
if(!(address & 0x1000)) return;
|
if(!(address & 0x1000)) return;
|
||||||
address &= 0x1fff;
|
address &= 0x1fff;
|
||||||
|
Loading…
Reference in New Issue
Block a user