ptitSeb
Serial Porter
I found the buggy emiter. NEG(rx, rx) doesn't seems to produce the right result. So I used RSB(rx, rx, 0) and it seems I have a working div32sBah, the ORR seems to works, so I'll keep it like thatAlternatively, you could reuse the ADC method, since it's functionally equivalent to ADC with the same two arguments.So i should be ? I may have some emiter to create...
ORR(reg.mapg(op->rd),reg.mapg(op->rs2),reg.mapg(op->rs1),true, S_LSL, 1); //(C,rd)= rs1<<1 + (|) rs2
MOVW(reg.mapg(op->rd2),0); //clear rd2 (for ADC/MOVCS)
ADC(reg.mapg(op->rd2),reg.mapg(op->rd2),0); //rd2=C (or MOVCS rd2, 1)
I'm still unabled to have a proper multiply. I think one of my emiter is broken, but I still don't know wich one. I will have to compile the asm on a side, and compare the output DWord by DWord to find the mistake