Advertisement

07.22.2008 at 04:27PM PDT, ID: 23586931
[x]
Attachment Details

Convert 80x86 assembly code to C, small loop program

Asked by atomicgs12 in Assembly Programming Language, C Programming Language

I  need the following assemble code converted to C code. The bsf instruction is the main part that I do not know. Thanks

mov eax, 80000000h      
mov bx, 4000            
loop1: bsf ecx,eax      /(Bit Scan Forward)bsf     dest, source,
       dec bx      
       jnz loop1

this was written and compiled in Visual Studio 2003/2005. C code will also be used in Visual StudioStart Free Trial
[+][-]07.23.2008 at 12:57AM PDT, ID: 22066896

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Assembly Programming Language, C Programming Language
Sign Up Now!
Solution Provided By: Infinity08
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.23.2008 at 10:55AM PDT, ID: 22071948

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 12:00PM PDT, ID: 22072646

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 12:33PM PDT, ID: 22072984

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 04:29PM PDT, ID: 22074889

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 04:44PM PDT, ID: 22074963

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628