EightBit/Ricoh2A03/inc/Ricoh2A03.h
Adrian Conlon 4d5afb67a3 Refactor the 6502 code a little. No functional changes and tests still seem to work.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-01-02 21:20:47 +00:00

19 lines
392 B
C++

#pragma once
#include <mos6502.h>
#include <Bus.h>
namespace EightBit {
class Ricoh2A03 final : public MOS6502 {
public:
Ricoh2A03(Bus& bus);
virtual ~Ricoh2A03() = default;
int clockCycles() const { return cycles(); }
protected:
virtual uint8_t SUB(uint8_t operand, uint8_t data, int borrow) final;
virtual uint8_t ADD(uint8_t operand, uint8_t data, int carry) final;
};
}