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
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Xmm auto replace
5 posts
• Page 1 of 1
Xmm auto replace
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.
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 1718 times
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: Xmm auto replace
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: 667
- Joined: Sun Jul 11, 2010 7:21 am
Re: Xmm auto replace
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.
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 1707 times
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: Xmm auto replace
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.
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 1624 times
-
- Replace xmm.png (61.45 KiB) Viewed 26462 times
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: Xmm auto replace
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.
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 969 times
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 68 guests