some FPU added :)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@81
This commit is contained in:
parent
42e5d0b779
commit
5f69f14962
8 changed files with 359 additions and 27 deletions
|
@ -35,6 +35,23 @@ struct Flag_Info {
|
|||
bool oldcf;
|
||||
};
|
||||
|
||||
struct FPU_Flag_Info {
|
||||
struct {
|
||||
Real64 r;
|
||||
Bit8u tag;
|
||||
} var1,var2, result;
|
||||
struct {
|
||||
bool bf,c3,c2,c1,c0,ir,sf,pf,uf,of,zf,df,in;
|
||||
Bit8s tos;
|
||||
} sw;
|
||||
struct {
|
||||
bool ic,ie,sf,pf,uf,of,zf,df,in;
|
||||
Bit8u rc,pc;
|
||||
} cw;
|
||||
Bitu type;
|
||||
Bitu prev_type;
|
||||
};
|
||||
|
||||
|
||||
|
||||
struct Segment {
|
||||
|
@ -51,6 +68,7 @@ enum { cs=0,ds,es,fs,gs,ss};
|
|||
|
||||
extern Segment Segs[6];
|
||||
extern Flag_Info flags;
|
||||
extern FPU_Flag_Info fpu_flags;
|
||||
//extern Regs regs;
|
||||
|
||||
void SetSegment_16(Bit32u seg,Bit16u val);
|
||||
|
@ -66,6 +84,13 @@ struct CPU_Regs {
|
|||
} ax,bx,cx,dx,si,di,sp,bp,ip;
|
||||
};
|
||||
|
||||
struct FPU_Regs {
|
||||
struct {
|
||||
Real64 r;
|
||||
Bit8u tag;
|
||||
} st[8];
|
||||
};
|
||||
|
||||
extern CPU_Regs cpu_regs;
|
||||
|
||||
#define reg_al cpu_regs.ax.b.l
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue