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
 Technical Support
 BUG: format on paste
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

HOMO_PROGRAMMATIS
New Member

8 Posts

Posted - Feb 21 2005 :  05:11:39 AM  Show Profile
It formats __asm{} blocks incorrectly.
Consider pasting, say,


void Div64by32(const unsigned __int64& p_Divident, DWORD p_Divisor, unsigned __int64& p_Result)
{
	__asm
	{
		mov		ebx, p_Divident
		mov     eax, [ebx + 4]
		
		xor     edx,edx
		div     p_Divisor
		mov		ecx, eax
		
		mov     eax, [ebx]
		div     p_Divisor
		
		mov		ebx, p_Result
		mov		[ebx], ecx
		mov		[ebx + 4], eax
	}
}

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Feb 21 2005 :  5:55:45 PM  Show Profile
VAX does not actually format the code its self, instead it asks the IDE to do this instead.

pasting this into a C++ file i see the problem. however if you highlight the code and then ask the .NET 2003 IDE to format it (CTRL_K + CTRL_F) then you end up with exactly the same effect.

an IDE bug, not a VAX bug.

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