Page 1 of 1

Xmm auto replace

PostPosted: Sat Nov 04, 2023 3:20 pm
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.

Re: Xmm auto replace

PostPosted: Sun Nov 05, 2023 10:32 am
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

Re: Xmm auto replace

PostPosted: Sun Nov 05, 2023 1:33 pm
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.

Re: Xmm auto replace

PostPosted: Thu Nov 09, 2023 12:53 pm
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.

Re: Xmm auto replace

PostPosted: Tue Nov 14, 2023 1:51 pm
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.