Changes for flag layout and some new support #defines
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@862
This commit is contained in:
parent
2f3689cd7e
commit
6fcd5cc659
1 changed files with 16 additions and 2 deletions
|
@ -38,7 +38,8 @@ void SetCPU16bit();
|
|||
|
||||
//Types of Flag changing instructions
|
||||
enum {
|
||||
t_ADDb=0,t_ADDw,t_ADDd,
|
||||
t_UNKNOWN=0,
|
||||
t_ADDb,t_ADDw,t_ADDd,
|
||||
t_ORb,t_ORw,t_ORd,
|
||||
t_ADCb,t_ADCw,t_ADCd,
|
||||
t_SBBb,t_SBBw,t_SBBd,
|
||||
|
@ -62,8 +63,8 @@ enum {
|
|||
t_DSHLw,t_DSHLd,
|
||||
t_DSHRw,t_DSHRd,
|
||||
t_MUL,t_DIV,
|
||||
t_UNKNOWN,
|
||||
t_NOTDONE,
|
||||
t_LASTFLAG
|
||||
};
|
||||
|
||||
void Interrupt(Bit8u num);
|
||||
|
@ -76,6 +77,19 @@ bool get_SF(void);
|
|||
bool get_OF(void);
|
||||
bool get_PF(void);
|
||||
|
||||
|
||||
#define FLAG_CF 0x0001
|
||||
#define FLAG_PF 0x0004
|
||||
#define FLAG_AF 0x0010
|
||||
#define FLAG_ZF 0x0040
|
||||
#define FLAG_SF 0x0080
|
||||
#define FLAG_TF 0x0100
|
||||
#define FLAG_IF 0x0200
|
||||
#define FLAG_DF 0x0400
|
||||
#define FLAG_OF 0x0800
|
||||
|
||||
|
||||
|
||||
#define LoadCF flags.cf=get_CF();
|
||||
#define LoadZF flags.zf=get_ZF();
|
||||
#define LoadSF flags.sf=get_SF();
|
||||
|
|
Loading…
Add table
Reference in a new issue