mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-10-06 06:00:27 +00:00
clobber "cc" for flags, not "flags". Thanks Milan for noticing it.
This commit is contained in:
parent
08e9f936eb
commit
ce3d90ff5e
@ -2717,7 +2717,7 @@ static bool target_check_bsf(void)
|
||||
int flags = (g_SF << 7) | (g_OF << 11) | (g_ZF << 6) | g_CF;
|
||||
int tmp = value;
|
||||
__asm__ __volatile__ ("push %0; popf; bsf %1,%1; pushf; pop %0"
|
||||
: "+r" (flags), "+r" (tmp) : : "flags");
|
||||
: "+r" (flags), "+r" (tmp) : : "cc");
|
||||
int OF = (flags >> 11) & 1;
|
||||
int SF = (flags >> 7) & 1;
|
||||
int ZF = (flags >> 6) & 1;
|
||||
|
Loading…
Reference in New Issue
Block a user