1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

UserspaceEmulator: Both ADD and SUB modify the carry flag

This commit is contained in:
Andreas Kling 2020-07-11 19:26:47 +02:00
parent f23c258290
commit b094e5279c

View file

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