Cosmetics, fix %rh cases in !X86_FLAT_REGISTERS mode, lahf/sahf are now

valid instructions in long mode (recent enough CPU revisions: lahf_lm).
This commit is contained in:
gbeauche 2006-02-06 22:57:18 +00:00
parent 9ccf62f7b0
commit 3b94dfb1a9

View File

@ -201,7 +201,7 @@ enum {
#else
#define _rN(R) ((R) & 0x07)
#define _rR(R) (int(R))
#define _rXP(R) (int(R) > 7)
#define _rXP(R) (_rR(R) > 7 && _rR(R) < 16)
#endif
#if !defined(_ASM_SAFETY) || ! X86_FLAT_REGISTERS
@ -248,10 +248,10 @@ typedef unsigned int _ul;
#define _SL(X) ((_sl )(unsigned long)(X))
#define _UL(X) ((_ul )(unsigned long)(X))
# define _PUC(X) ((_uc *)(X))
# define _PUS(X) ((_us *)(X))
# define _PSL(X) ((_sl *)(X))
# define _PUL(X) ((_ul *)(X))
#define _PUC(X) ((_uc *)(X))
#define _PUS(X) ((_us *)(X))
#define _PSL(X) ((_sl *)(X))
#define _PUL(X) ((_ul *)(X))
#define _B(B) x86_emit_byte((B))
#define _W(W) x86_emit_word((W))
@ -1617,8 +1617,8 @@ enum {
#define CDQ CLTD
#define CQO CQTO
#define LAHF() _m32only( _O (0x9f ))
#define SAHF() _m32only( _O (0x9e ))
#define LAHF() _O (0x9f )
#define SAHF() _O (0x9e )
/* _format Opcd ,Mod ,r ,m ,mem=dsp+sib ,imm... */