debug stuff, bug fixing

This commit is contained in:
kub 2019-03-29 18:36:44 +01:00
parent ff0eaa11d9
commit e267031a50
4 changed files with 185 additions and 62 deletions

View file

@ -510,12 +510,12 @@ static int emith_xbranch(int cond, void *target, int is_call)
emith_top_imm(A_COND_AL, A_OP_TST, r, imm)
#define emith_cmp_r_imm(r, imm) { \
u32 op = A_OP_CMP, imm_ = imm; \
if (~imm_ < 0x100) { \
imm_ = -imm_; \
op = A_OP_CMN; \
u32 op_ = A_OP_CMP, imm_ = (u8)imm; \
if ((s8)imm_ < 0) { \
imm_ = (u8)-imm_; \
op_ = A_OP_CMN; \
} \
emith_top_imm(A_COND_AL, op, r, imm); \
emith_top_imm(A_COND_AL, op_, r, imm_); \
}
#define emith_subf_r_imm(r, imm) \