Xmm auto replace

DSP related issues, mathematics, processing and techniques
Post Reply
Tepeix
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Xmm auto replace

Post by Tepeix »

A little tool i find sometime usefull in asm.

Many time i have little code that i must combine, but probably, the first one need to keep a register free that is used by the next one. The task to manually change those register take time and is not so much easy, also with the stress to make any error.

So i made this little tool to replace a register with another one in a text..
It's not perfect yet, because if more than one register need replacement, we will need to replace the input text for each iteration.. For now i fail to fix this, but anyway this could maybe help sometime.
Attachments
Xmm auto replace.fsm
(3.8 KiB) Downloaded 2346 times
adamszabo
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Re: Xmm auto replace

Post by adamszabo »

Interesting! But you know you can press Control+H in the assembler and it can replace text right? Then you can replace all "xmm1" with "xmm5" for example
Tepeix
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Xmm auto replace

Post by Tepeix »

Thanks, héhé, i didn't know !
It might be faster than use my module in most case as this one require to copy paste.)

So my module is almost not useful, yet i post this very little variation, now it indicate which xmm are used
in the text. Which doesn't change too much, but i could like to use it sometime to see fast which xmm are free.
Attachments
Xmm auto replace v2.fsm
(4.48 KiB) Downloaded 2335 times
Tepeix
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Xmm auto replace

Post by Tepeix »

Another upgrade. Become more practical now.

Don't know why i didn't think about before..
Now we could paste the code in a window which is better than input a text.
We could also iterate. Yet i use a double button and double windows but might be possible to make this in once.

Edit: a little more security, it's no more possible to exchange the out and in text before all change are done which could lead to error. and a progress leds.
Attachments
Xmm auto replace v5.fsm
(147.29 KiB) Downloaded 2237 times
Replace xmm.png
Replace xmm.png (61.45 KiB) Viewed 128909 times
Tepeix
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Xmm auto replace

Post by Tepeix »

A little upgrade of the xmm replace.

There was the possibility to produce an error, when changing the xmm selector after clicking the first replace.

So now after some test, the modification will happen and reset each time a text is input or xmm selected, and the manual replace is only from right to left.
Attachments
Xmm Replace upgradev2.fsm
(146.5 KiB) Downloaded 1584 times
Post Reply