Browse Source

* use a_load_reg_reg instead of emit_mov in tcgmos6502.a_op_const_reg_internal

Nikolay Nikolov 1 year ago
parent
commit
63fcde0136
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/mos6502/cgcpu.pas

+ 2 - 2
compiler/mos6502/cgcpu.pas

@@ -1069,9 +1069,9 @@ unit cgcpu;
                      else
                      else
                        begin
                        begin
                          getcpuregister(list,NR_A);
                          getcpuregister(list,NR_A);
-                         emit_mov(list,NR_A,reg);
+                         a_load_reg_reg(list,OS_8,OS_8,reg,NR_A);
                          list.concat(taicpu.op_const(A_ORA,curvalue));
                          list.concat(taicpu.op_const(A_ORA,curvalue));
-                         emit_mov(list,reg,NR_A);
+                         a_load_reg_reg(list,OS_8,OS_8,NR_A,reg);
                          ungetcpuregister(list,NR_A);
                          ungetcpuregister(list,NR_A);
                        end;
                        end;
                    end;
                    end;