Explorar el Código

Update MODIFY RELATIVE BASE opcode

Fixed the params being sent to ParseParameterMode for this function
ApisNecros hace 1 año
padre
commit
6bac6af065
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      IntComp/Computer.js

+ 1 - 1
IntComp/Computer.js

@@ -439,7 +439,7 @@ module.exports = class Computer {
      * @returns {void}
      */
     Operation_ModifyRelativeBase(rawOpcode) {
-        const operandMode = ComputerParameterMode.ParseParameterMode(rawOpcode);
+        const operandMode = ComputerParameterMode.ParseParameterMode(rawOpcode, 1);
         const adjustmentValue = this.stack.Next().Get(operandMode);
 
         this.stack.AdjustRelativeBaseOffset(adjustmentValue);