Bläddra i källkod

UserspaceEmulator: Both ADD and SUB modify the carry flag

Andreas Kling 5 år sedan
förälder
incheckning
b094e5279c
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      DevTools/UserspaceEmulator/SoftCPU.cpp

+ 2 - 2
DevTools/UserspaceEmulator/SoftCPU.cpp

@@ -215,7 +215,7 @@ static typename TypeDoubler<Destination>::type op_sub(SoftCPU& cpu, const Destin
         "pop %%ebx"
         "pop %%ebx"
         : "=b"(new_flags));
         : "=b"(new_flags));
 
 
-    cpu.set_flags_oszap(new_flags);
+    cpu.set_flags_oszapc(new_flags);
     return result;
     return result;
 }
 }
 
 
@@ -246,7 +246,7 @@ static Destination op_add(SoftCPU& cpu, Destination& dest, const Source& src)
         "pop %%ebx"
         "pop %%ebx"
         : "=b"(new_flags));
         : "=b"(new_flags));
 
 
-    cpu.set_flags_oszap(new_flags);
+    cpu.set_flags_oszapc(new_flags);
     return result;
     return result;
 }
 }