Browse Source

Update MODIFY RELATIVE BASE opcode

Fixed the params being sent to ParseParameterMode for this function
ApisNecros 1 year ago
parent
commit
6bac6af065
1 changed files with 1 additions and 1 deletions
  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);