mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-04-20 10:16:48 +00:00
Some more small clarifications of shared processor implementation.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
+3
-3
@@ -54,7 +54,7 @@ namespace EightBit {
|
||||
|
||||
int interrupt(bool maskable, uint8_t value);
|
||||
|
||||
int execute(uint8_t opcode);
|
||||
virtual int execute(uint8_t opcode);
|
||||
int step();
|
||||
|
||||
virtual register16_t& AF() override {
|
||||
@@ -131,9 +131,9 @@ namespace EightBit {
|
||||
int8_t m_displacement;
|
||||
bool m_displaced;
|
||||
|
||||
int fetchExecute() {
|
||||
virtual int fetchExecute() override{
|
||||
M1() = true;
|
||||
return execute(fetchByte());
|
||||
return IntelProcessor::fetchExecute();
|
||||
}
|
||||
|
||||
uint8_t& DISPLACED() {
|
||||
|
||||
+1
-1
@@ -1152,7 +1152,7 @@ void EightBit::Z80::executeOther(int x, int y, int z, int p, int q) {
|
||||
case 1: // 16-bit load immediate/add
|
||||
switch (q) {
|
||||
case 0: // LD rp,nn
|
||||
fetchWord(RP(p));
|
||||
Processor::fetchWord(RP(p));
|
||||
cycles += 10;
|
||||
break;
|
||||
case 1: // ADD HL,rp
|
||||
|
||||
Reference in New Issue
Block a user