Skip to content

Commit

Permalink
[#315] z80-cpu: fasten LD X,X
Browse files Browse the repository at this point in the history
  • Loading branch information
vbmacher committed Feb 19, 2023
1 parent 142ab0c commit ce2b80d
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2681,7 +2681,7 @@ int I_CALL_NN() {
}

int I_LD_B_B() {
return I_LD_R_R(REG_B, REG_B);
return 4;
}

int I_LD_B_C() {
Expand Down Expand Up @@ -2745,7 +2745,7 @@ int I_LD_C_B() {
}

int I_LD_C_C() {
return I_LD_R_R(REG_C, REG_C);
return 4;
}

int I_LD_C_D() {
Expand Down Expand Up @@ -2809,7 +2809,7 @@ int I_LD_D_C() {
}

int I_LD_D_D() {
return I_LD_R_R(REG_D, REG_D);
return 4;
}

int I_LD_D_E() {
Expand Down Expand Up @@ -2873,7 +2873,7 @@ int I_LD_E_D() {
}

int I_LD_E_E() {
return I_LD_R_R(REG_E, REG_E);
return 4;
}

int I_LD_E_H() {
Expand Down Expand Up @@ -2937,7 +2937,7 @@ int I_LD_H_E() {
}

int I_LD_H_H() {
return I_LD_R_R(REG_H, REG_H);
return 4;
}

int I_LD_H_L() {
Expand Down Expand Up @@ -3059,7 +3059,7 @@ int I_LD_L_H() {
}

int I_LD_L_L() {
return I_LD_R_R(REG_L, REG_L);
return 4;
}

int I_LD_L_A() {
Expand Down Expand Up @@ -3181,7 +3181,7 @@ int I_LD_A_L() {
}

int I_LD_A_A() {
return I_LD_R_R(REG_A, REG_A);
return 4;
}

int I_LD_A_REF_HL() {
Expand Down

0 comments on commit ce2b80d

Please sign in to comment.