소스 검색

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