The MASM Forum Archive 2004 to 2012

Specialised Projects => Assembler/Compiler Technology => Topic started by: karim on August 25, 2005, 12:24:09 AM

Title: convertion asm to c
Post by: karim on August 25, 2005, 12:24:09 AM
i want to tranlate this asm code to c code
somebody can help me ?

I removed the posted code because it was so large that it would not display properly and was truncated. Please re-attach the code as a zipped text file. It would also help if you just posted a small amount of the code and a description of what it is writen with.
Title: Re: convertion asm to c
Post by: MusicalMike on October 23, 2005, 01:59:04 AM
When someone writes a c compile, that person has to program the compiler to emit specific asm instructions based on the c code it sees. You need to do the opposite. for instance, when you see


cmp bla, 0
je someLbl


you can replace it with


if (bla == 0)
{
//what ever someLbl does goes here
}


get what I mean.
}