|
-
Dec 13th, 2002, 07:01 PM
#1
Thread Starter
Hyperactive Member
tell msvc++ to supress all __asm errors,
okay, i want to use my asm knowledge to speed up a part in my c++ app. my errorss are below and the code. i numberd the conflicting lines. how would i supress these, or fix them. btw i used debug to get the asm code and offsets etc.
F:\C++\newprojects\primes\primesc.cpp(113) : error C2414: illegal number of operands
F:\C++\newprojects\primes\primesc.cpp(128) : error C2405: illegal short forward reference with offset
F:\C++\newprojects\primes\primesc.cpp(130) : error C2405: illegal short forward reference with offset
// A = A % B;
// T = A;
// A = B;
// B = T;
// }
__asm {
mov eax,ecx
xor edx,edx
div eax,edi
line113: mov ecx,edx
mov esi ,ecx
mov ecx,edi
mov edi,esi
jmp loopz0rz+28h
}
// if (A != 1 && A != I)
// Prime = 0;
// G = G + 1;
// } //end 3
__asm {
cmp ecx,1
je loopz0rz+67h
line128: cmp ecx,dword ptr [ebp-10h]
je loopz0rz+67h
line130: mov dword ptr [ebp-8],0
inc ebx
jmp loopz0rz+0Eh
}
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|