1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-11 14:05:21 +00:00

Fix capture of the initial zero flag.

This commit is contained in:
Thomas Harte 2022-05-11 15:40:17 -04:00
parent 17add4b585
commit ed75688251

View File

@ -20,7 +20,7 @@ using namespace InstructionSet::M68k;
- (Status)statusWithflamewingFlags:(int)flags {
Status status;
status.carry_flag_ = status.extend_flag_ = flags & 2;
status.zero_result_ = ~(flags & 1);
status.zero_result_ = ~flags & 1;
status.negative_flag_ = 0;
status.overflow_flag_ = 0;
return status;