Add alignment check bit in flags register to allow 486 detection
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1579
This commit is contained in:
parent
a1d92f605e
commit
7b1abfca2d
1 changed files with 3 additions and 1 deletions
|
@ -35,9 +35,11 @@
|
|||
#define FLAG_IOPL 0x00003000
|
||||
#define FLAG_NT 0x00004000
|
||||
#define FLAG_VM 0x00020000
|
||||
#define FLAG_AC 0x00040000
|
||||
#define FLAG_ID 0x00200000
|
||||
|
||||
#define FMASK_TEST (FLAG_CF | FLAG_PF | FLAG_AF | FLAG_ZF | FLAG_SF | FLAG_OF)
|
||||
#define FMASK_NORMAL (FMASK_TEST | FLAG_DF | FLAG_TF | FLAG_IF)
|
||||
#define FMASK_NORMAL (FMASK_TEST | FLAG_DF | FLAG_TF | FLAG_IF | FLAG_AC )
|
||||
#define FMASK_ALL (FMASK_NORMAL | FLAG_IOPL | FLAG_NT)
|
||||
|
||||
#define SETFLAGBIT(TYPE,TEST) if (TEST) reg_flags|=FLAG_ ## TYPE; else reg_flags&=~FLAG_ ## TYPE
|
||||
|
|
Loading…
Add table
Reference in a new issue