Cleaned up some old #defines
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@160
This commit is contained in:
parent
77f4c055de
commit
8c2ba5ad63
1 changed files with 0 additions and 12 deletions
|
@ -18,25 +18,13 @@
|
|||
|
||||
EAPoint IPPoint;
|
||||
|
||||
|
||||
#define SUBIP(a) IPPoint-=a
|
||||
#define SETIP(a) IPPoint=SegBase(cs)+a
|
||||
#define GETIP (Bit16u)(IPPoint-SegBase(cs))
|
||||
#define SAVEIP reg_ip=GETIP
|
||||
#define LOADIP IPPoint=SegBase(cs)+reg_ip
|
||||
/*
|
||||
#define ADDIP(a) { \
|
||||
Bit16u add_ip=(Bit16u)(IPPoint-SegBase(cs)); \
|
||||
add_ip+=a; \
|
||||
IPPoint=SegBase(cs)+add_ip; \
|
||||
}
|
||||
*/
|
||||
|
||||
static INLINE void ADDIP(Bit16u add) {
|
||||
|
||||
// Bit16u oldip=(IPPoint-SegBase(cs));
|
||||
// oldip+=add;
|
||||
// IPPoint=SegBase(cs)+oldip;
|
||||
IPPoint=SegBase(cs)+((Bit16u)(((Bit16u)(IPPoint-SegBase(cs)))+(Bit16u)add));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue