Skip to content

Commit

Permalink
- fixed: The ADDA_RK opcode used the wrong constant type for the offs…
Browse files Browse the repository at this point in the history
…et it adds to the pointer.
  • Loading branch information
coelckers committed Jul 15, 2017
1 parent 98124c8 commit daca126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/vm/vmops.h
Expand Up @@ -250,7 +250,7 @@ xx(EQV3_K, beqv3, CVRK, NOP, 0, 0), // this will never be used.

// Pointer math.
xx(ADDA_RR, add, RPRPRI, NOP, 0, 0), // pA = pB + dkC
xx(ADDA_RK, add, RPRPKI, ADDA_RR,4, REGT_POINTER),
xx(ADDA_RK, add, RPRPKI, ADDA_RR,4, REGT_INT),
xx(SUBA, sub, RIRPRP, NOP, 0, 0), // dA = pB - pC
xx(EQA_R, beq, CPRR, NOP, 0, 0), // if ((pB == pkC) != A) then pc++
xx(EQA_K, beq, CPRK, EQA_R, 4, REGT_POINTER),
Expand Down

0 comments on commit daca126

Please sign in to comment.