mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
UserspaceEmulator: Both ADD and SUB modify the carry flag
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user