mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-08-12 05:24:56 +00:00
Tidy up some shared code for the Z80 pushWord vs call timing.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -113,9 +113,9 @@ namespace EightBit {
|
|||||||
void handleRESET() final;
|
void handleRESET() final;
|
||||||
void handleINT() final;
|
void handleINT() final;
|
||||||
|
|
||||||
void call(const register16_t destination) override {
|
void pushWord(const register16_t destination) override {
|
||||||
tick();
|
tick();
|
||||||
IntelProcessor::call(destination);
|
IntelProcessor::pushWord(destination);
|
||||||
}
|
}
|
||||||
|
|
||||||
void busWrite() final;
|
void busWrite() final;
|
||||||
|
@@ -1362,7 +1362,6 @@ void EightBit::Z80::executeOther(const int x, const int y, const int z, const in
|
|||||||
case 5: // PUSH & various ops
|
case 5: // PUSH & various ops
|
||||||
switch (q) {
|
switch (q) {
|
||||||
case 0: // PUSH rp2[p]
|
case 0: // PUSH rp2[p]
|
||||||
tick();
|
|
||||||
pushWord(RP2(p));
|
pushWord(RP2(p));
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
@@ -23,7 +23,7 @@ namespace EightBit {
|
|||||||
|
|
||||||
register16_t fetchWord() final;
|
register16_t fetchWord() final;
|
||||||
|
|
||||||
void pushWord(register16_t value) final;
|
void pushWord(register16_t value) override;
|
||||||
register16_t popWord() final;
|
register16_t popWord() override;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user