mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-22 12:30:44 +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:
parent
d9466082ec
commit
dc37d61797
@ -113,9 +113,9 @@ namespace EightBit {
|
||||
void handleRESET() final;
|
||||
void handleINT() final;
|
||||
|
||||
void call(const register16_t destination) override {
|
||||
void pushWord(const register16_t destination) override {
|
||||
tick();
|
||||
IntelProcessor::call(destination);
|
||||
IntelProcessor::pushWord(destination);
|
||||
}
|
||||
|
||||
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
|
||||
switch (q) {
|
||||
case 0: // PUSH rp2[p]
|
||||
tick();
|
||||
pushWord(RP2(p));
|
||||
break;
|
||||
case 1:
|
||||
|
@ -23,7 +23,7 @@ namespace EightBit {
|
||||
|
||||
register16_t fetchWord() final;
|
||||
|
||||
void pushWord(register16_t value) final;
|
||||
register16_t popWord() final;
|
||||
void pushWord(register16_t value) override;
|
||||
register16_t popWord() override;
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user