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:
parent
17add4b585
commit
ed75688251
@ -20,7 +20,7 @@ using namespace InstructionSet::M68k;
|
|||||||
- (Status)statusWithflamewingFlags:(int)flags {
|
- (Status)statusWithflamewingFlags:(int)flags {
|
||||||
Status status;
|
Status status;
|
||||||
status.carry_flag_ = status.extend_flag_ = flags & 2;
|
status.carry_flag_ = status.extend_flag_ = flags & 2;
|
||||||
status.zero_result_ = ~(flags & 1);
|
status.zero_result_ = ~flags & 1;
|
||||||
status.negative_flag_ = 0;
|
status.negative_flag_ = 0;
|
||||||
status.overflow_flag_ = 0;
|
status.overflow_flag_ = 0;
|
||||||
return status;
|
return status;
|
||||||
|
Loading…
Reference in New Issue
Block a user