Add AdrImp to Cpu addressing

This commit is contained in:
scawful
2024-04-22 17:11:07 -04:00
parent 6eeb40ac8b
commit 72723f1fd8

View File

@@ -3,6 +3,20 @@
namespace yaze {
namespace app {
namespace emu {
// addressing modes
void Cpu::AdrImp() {
// only for 2-cycle implied opcodes
CheckInt();
if (int_wanted_) {
// if interrupt detected in 2-cycle implied/accumulator opcode,
// idle cycle turns into read from pc
ReadByte((PB << 16) | PC);
} else {
callbacks_.idle(false);
}
}
uint32_t Cpu::Absolute(Cpu::AccessType access_type) {
auto operand = FetchWord();