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 |
|
{ |