2017-12-25 23:34:56 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-08-18 22:56:16 +00:00
|
|
|
#include <cstdint>
|
2017-12-25 23:34:56 +00:00
|
|
|
#include <mos6502.h>
|
|
|
|
#include <Bus.h>
|
|
|
|
|
|
|
|
namespace EightBit {
|
|
|
|
class Ricoh2A03 final : public MOS6502 {
|
|
|
|
public:
|
|
|
|
Ricoh2A03(Bus& bus);
|
2017-12-26 22:46:16 +00:00
|
|
|
virtual ~Ricoh2A03() = default;
|
2017-12-25 23:34:56 +00:00
|
|
|
|
|
|
|
protected:
|
2021-07-18 13:28:40 +00:00
|
|
|
virtual uint8_t sub(uint8_t operand, uint8_t data, int borrow) noexcept final;
|
|
|
|
virtual uint8_t add(uint8_t operand, uint8_t data, int carry) noexcept final;
|
2017-12-25 23:34:56 +00:00
|
|
|
};
|
|
|
|
}
|