bsnes/higan/processor/arm7tdmi/arm7tdmi.cpp

31 lines
573 B
C++

#include <processor/processor.hpp>
#include "arm7tdmi.hpp"
namespace Processor {
#include "registers.cpp"
#include "memory.cpp"
#include "algorithms.cpp"
#include "instruction.cpp"
#include "instructions-arm.cpp"
#include "instructions-thumb.cpp"
#include "serialization.cpp"
#include "disassembler.cpp"
ARM7TDMI::ARM7TDMI() {
armInitialize();
thumbInitialize();
}
auto ARM7TDMI::power() -> void {
processor = {};
processor.r15.modify = [&] { pipeline.reload = true; };
pipeline = {};
carry = 0;
irq = 0;
cpsr().f = 1;
exception(PSR::SVC, 0x00);
}
}