Преглед на файлове

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);