浏览代码

Update MODIFY RELATIVE BASE opcode

Fixed the params being sent to ParseParameterMode for this function
ApisNecros 1 年之前
父节点
当前提交
6bac6af065
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);