ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/uae_cpu/compiler/codegen_x86.cpp
(Generate patch)

Comparing BasiliskII/src/uae_cpu/compiler/codegen_x86.cpp (file contents):
Revision 1.10 by gbeauche, 2003-03-13T15:57:01Z vs.
Revision 1.11 by gbeauche, 2003-03-13T20:34:34Z

# Line 2216 | Line 2216 | static __inline__ void raw_load_flagx(ua
2216          raw_mov_l_rm(target,(uae_u32)live.state[r].mem);
2217   }
2218  
2219 + #define NATIVE_FLAG_Z 0x40
2220 + static __inline__ void raw_flags_set_zero(int f, int r, int t)
2221 + {
2222 +        // FIXME: this is really suboptimal
2223 +        raw_pushfl();
2224 +        raw_pop_l_r(f);
2225 +        raw_and_l_ri(f,~NATIVE_FLAG_Z);
2226 +        raw_test_l_rr(r,r);
2227 +        raw_mov_l_ri(r,0);
2228 +        raw_mov_l_ri(t,NATIVE_FLAG_Z);
2229 +        raw_cmov_l_rr(r,t,NATIVE_CC_EQ);
2230 +        raw_or_l(f,r);
2231 +        raw_push_l_r(f);
2232 +        raw_popfl();
2233 + }
2234  
2235   static __inline__ void raw_inc_sp(int off)
2236   {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines