ARM assembly, multiplying without MUL instruction -
I researched this large scale, and I have not received any answers. Without using multiplication instructions in ARM assembly language, I have to multiply * 17. I understand that you can use RSB, but how to use values or how to use the LSL # part is misleading. Any help would be great!
I agree with comments, but only a quick tip, usually compiler
So you can use only one And a horrible joke: Use the tool, Luke! arm - * - * - gcc toolchain to get this kind of answer.
$ cat m17.c int f (int i) {return i * 17; } $ Arm-linux-gnueabihf-gcc -O3 -S m17.c $ cat m17.s & lt; Left & gt; F: R, R, R, LSL # 4 BX LR and Left; Skip & gt;
Comments
Post a Comment