Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Xmm auto replace

DSP related issues, mathematics, processing and techniques

Xmm auto replace

Postby Tepeix » Sat Nov 04, 2023 3:20 pm

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 1137 times
Tepeix
 
Posts: 354
Joined: Sat Oct 16, 2021 3:11 pm

Re: Xmm auto replace

Postby adamszabo » Sun Nov 05, 2023 10:32 am

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
adamszabo
 
Posts: 657
Joined: Sun Jul 11, 2010 7:21 am

Re: Xmm auto replace

Postby Tepeix » Sun Nov 05, 2023 1:33 pm

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 1136 times
Tepeix
 
Posts: 354
Joined: Sat Oct 16, 2021 3:11 pm

Re: Xmm auto replace

Postby Tepeix » Thu Nov 09, 2023 12:53 pm

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 1042 times
Replace xmm.png
Replace xmm.png (61.45 KiB) Viewed 17401 times
Tepeix
 
Posts: 354
Joined: Sat Oct 16, 2021 3:11 pm

Re: Xmm auto replace

Postby Tepeix » Tue Nov 14, 2023 1:51 pm

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 384 times
Tepeix
 
Posts: 354
Joined: Sat Oct 16, 2021 3:11 pm


Return to DSP

Who is online

Users browsing this forum: No registered users and 56 guests