mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-03-15 16:16:36 +00:00
Commit in-flight changes. Look reasonable
This commit is contained in:
@@ -63,14 +63,14 @@ void EightBit::IntelProcessor::restart(const uint8_t address) {
|
||||
}
|
||||
|
||||
int EightBit::IntelProcessor::callConditional(const int condition) {
|
||||
MEMPTR() = fetchWord();
|
||||
fetchWordMEMPTR();
|
||||
if (condition)
|
||||
call(MEMPTR());
|
||||
return condition;
|
||||
}
|
||||
|
||||
int EightBit::IntelProcessor::jumpConditional(const int condition) {
|
||||
MEMPTR() = fetchWord();
|
||||
fetchWordMEMPTR();
|
||||
if (condition)
|
||||
jump(MEMPTR());
|
||||
return condition;
|
||||
@@ -100,6 +100,21 @@ void EightBit::IntelProcessor::ret() {
|
||||
MEMPTR() = PC();
|
||||
}
|
||||
|
||||
void EightBit::IntelProcessor::fetchWordMEMPTR() {
|
||||
const auto _ = fetchWord();
|
||||
MEMPTR() = intermediate();
|
||||
}
|
||||
|
||||
void EightBit::IntelProcessor::jumpIndirect() {
|
||||
fetchWordMEMPTR();
|
||||
jump(MEMPTR());
|
||||
}
|
||||
|
||||
void EightBit::IntelProcessor::callIndirect() {
|
||||
fetchWordMEMPTR();
|
||||
call(MEMPTR());
|
||||
}
|
||||
|
||||
bool EightBit::IntelProcessor::operator==(const EightBit::IntelProcessor& rhs) const noexcept {
|
||||
return
|
||||
LittleEndianProcessor::operator==(rhs)
|
||||
|
||||
Reference in New Issue
Block a user