2017-12-25 23:34:56 +00:00
|
|
|
#include "stdafx.h"
|
2021-05-29 11:18:13 +00:00
|
|
|
#include "../inc/Ricoh2A03.h"
|
2017-12-25 23:34:56 +00:00
|
|
|
|
|
|
|
EightBit::Ricoh2A03::Ricoh2A03(Bus& bus)
|
|
|
|
: MOS6502(bus) {
|
|
|
|
}
|
|
|
|
|
2024-03-14 14:54:52 +00:00
|
|
|
uint8_t EightBit::Ricoh2A03::sub(uint8_t operand, int borrow) noexcept {
|
|
|
|
const auto data = BUS().DATA();
|
2018-10-31 23:29:13 +00:00
|
|
|
return MOS6502::sub_b(operand ,data, borrow);
|
2017-12-25 23:34:56 +00:00
|
|
|
}
|
|
|
|
|
2024-03-14 14:54:52 +00:00
|
|
|
uint8_t EightBit::Ricoh2A03::add(uint8_t operand, int carry) noexcept {
|
|
|
|
const auto data = BUS().DATA();
|
2018-10-31 23:29:13 +00:00
|
|
|
return MOS6502::add_b(operand, data, carry);
|
2017-12-25 23:34:56 +00:00
|
|
|
}
|