Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Inline assembler
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Bobby
New Member

3 Posts

Posted - Jan 02 2007 :  11:37:22 AM  Show Profile  Reply with Quote
Not sure if this should be posted under as bug report or as suggestion... anyways.
It would be nice that Visual Assist X would support inline assember or probably more correct would be to say do not support (probably there's not much out there who would need such support). Problem is that inline assember messes up your tool. I noticed that after a bigger inline assembly block suggestions become unusable, so it would be nice if they were simply ignored.

Regards

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jan 02 2007 :  11:41:42 AM  Show Profile  Reply with Quote
which IDE and version of VA are you using?
Would you be able to post or send me a file that shows this effect? Personally I never use inline assembler, or assembler at all so I am not quite sure where to start setting up a test case.

If you have a test file that you are able to send us then please send it files via the form:

http://www.wholetomato.com/support/contact.asp

including this thread ID or URL in the description, so we can match it up.

zen is the art of being at one with the two'ness
Go to Top of Page

Bobby
New Member

3 Posts

Posted - Jan 04 2007 :  05:01:42 AM  Show Profile  Reply with Quote
I've tested a little and found out what exactly causes problems and seems my previous claims are slightly wrong. Sorry for that.
Here's small peace of code.

void SomeFunction(int nArg1, int nArg2)
{
}

void Reconstruct(int nArg1, int nArg2)
{
	__asm
	{
		; here's problem
		sub   edi, ecx
	}
}


int main(int argc, char *argv[])
{
	
	return 0;
}


If you'll try to call function SomeFunction from main VA won't give any suggestions. Problem is in line "; here's problem". ';' marks asm comment so it's all valid, but single quote messes VA up. Though, the fact that in inline asm it is possible to use C like comments helps here :)
Second problem is that if you try to retype line 'sub edi, ecx', you'll notice that VA suggestions here doesn't help at all, only annoys.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jan 04 2007 :  12:17:32 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=4361

As for suggestions, with both:

VA Options -> Text Editor -> suggestions -> display suggestion list
VA Options -> Text Editor -> suggestions -> Include bits of code from surrounding lines

turned on VA is sometimes suggesting "edi" and "ecx". true it is suggesting lots of other things as well that do not belong inside an assembler block, but suggestion listboxes (question mark icons) are designed to help, rather than to worry to much about completely valid suggestions.

You may find that the more assembler you type in a single block the more helpful the suggestions become, especially if you have "Include bits of code from surrounding lines" turned on.

zen is the art of being at one with the two'ness
Go to Top of Page

Rain Dog
Ketchup Master

88 Posts

Posted - Jan 08 2007 :  10:14:33 PM  Show Profile  Reply with Quote
I've experienced the same thing although I was never able to pin it down to inline asm
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jan 09 2007 :  07:40:45 AM  Show Profile  Reply with Quote
Does looking for and removing single quotes in your inline asm fix the problem for you?

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000