Sfoglia il codice sorgente

+ set the jmp_instructions and call_jmp_instructions sets

Nikolay Nikolov 1 anno fa
parent
commit
63ac501f26
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      compiler/mos6502/cpubase.pas

+ 2 - 2
compiler/mos6502/cpubase.pas

@@ -59,8 +59,8 @@ unit cpubase;
 
       { call/reg instructions are not considered as jmp instructions for the usage cases of
         this set }
-      //jmp_instructions = [A_JMP,A_JR,A_JRJP,A_DJNZ];
-      //call_jmp_instructions = [A_JSR]+jmp_instructions;
+      jmp_instructions = [A_JMP,A_BPL,A_BMI,A_BVC,A_BVS,A_BCC,A_BCS,A_BNE,A_BEQ];
+      call_jmp_instructions = [A_JSR]+jmp_instructions;
 
       { instructions that can have a condition }
       //cond_instructions = [A_CALL,A_JP,A_JR,A_JRJP,A_RET];