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:
parent
f23c258290
commit
b094e5279c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue