- if (mod > 1 && modulo_shift == -1) { printf("need var modulo\n"); exit(1); }
- modulo = (1 << modulo_shift) - 1;
+ if (mod > 1 && modulo_shift == -1) {
+/* TODO
+ int reg = (r < 4) ? 8 : 9;
+ int ror = ((r&3) + 1)*8 - (8 - modulo_shift);
+ EOP_MOV_REG_ROR(reg,reg,ror);
+ // {add|sub} reg, reg, #1<<shift
+ EOP_C_DOP_IMM(A_COND_AL,(mod==2)?A_OP_SUB:A_OP_ADD,0,reg,reg, 8/2, 1<<(8 - modulo_shift));
+ EOP_MOV_REG_ROR(reg,reg,32-ror);
+*/