1
0
Fork 0

Remove the FILLFLAGS define and use a function call for it.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1180
This commit is contained in:
Sjoerd van der Berg 2003-08-11 08:42:58 +00:00
parent e5137b4d74
commit 6fed40f0a8
5 changed files with 28 additions and 29 deletions

View file

@ -24,6 +24,8 @@ Bitu get_SF(void);
Bitu get_OF(void);
Bitu get_PF(void);
void FillFlags(void);
#define SETFLAGSb(FLAGB) \
{ \
SETFLAGBIT(OF,get_OF()); \
@ -43,18 +45,6 @@ Bitu get_PF(void);
CPU_SetFlags(FLAGD); \
}
#define FILLFLAGS \
{ \
flags.word=(flags.word & ~FLAG_MASK) | \
(get_CF() ? FLAG_CF : 0 ) | \
(get_PF() ? FLAG_PF : 0 ) | \
(get_AF() ? FLAG_AF : 0 ) | \
(get_ZF() ? FLAG_ZF : 0 ) | \
(get_SF() ? FLAG_SF : 0 ) | \
(get_OF() ? FLAG_OF : 0 ); \
flags.type=t_UNKNOWN; \
}
#define LoadCF SETFLAGBIT(CF,get_CF());
#define LoadZF SETFLAGBIT(ZF,get_ZF());
#define LoadSF SETFLAGBIT(SF,get_SF());