diff --git a/src/cpu/core_16/prefix_66.h b/src/cpu/core_16/prefix_66.h index 344a9d9b..aca48e59 100644 --- a/src/cpu/core_16/prefix_66.h +++ b/src/cpu/core_16/prefix_66.h @@ -273,7 +273,8 @@ switch(Fetchb()) { } case 0x9d: /* POPFD */ { - Save_Flagsw((Bit16u)(Pop_32()&0xffff)); + Bit16u val=(Bit16u)(Pop_32()&0xffff); + Save_Flagsw(val); break; } case 0xa1: /* MOV EAX,Ow */