Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

C ++ TO ASSEMBLEY transformation ( NEED QUICKY HELP!!!!)

i have a problem.
i need help to converte a c++ to assembley, anybody can help me, i have do only until 18 pm to finish.


int x, y, ml, ma, tx, factor;
ml = largura / 2;
ma = altura / 2;
for(y = 0; y < altura; y++){
for(x = 0; x < largura * 3; x+=3){
tx = x / 3;
factor = 1000 - 1000 * ((tx-ml)*(tx-ml) + (y-ma)*(y-ma)) / (ml*ml + ma*ma);
pdest[y][x]= (porig[y][x] * factor) / 1000;
pdest[y][x+1]= (porig[y][x+1] * factor) / 1000;
pdest[y][x+2]= (porig[y][x+2] * factor) / 1000;
}
}



i have done that code but it's not well done

/*************************************
ebp+20 pdest
ebp+16 porig
ebp+12 largura
ebp+8 altura
ebp-4 x
ebp-8 y

ebp-12 ml
ebp-16 ma
ebp-20 tx
ebp-24 factor
*************************************/

asm
{
sub esp, 24 //int x, y, ml, ma, tx, factor

//declara

Comments

  • MT2002MT2002 Member Posts: 1,444
    Two things:

    1. Have you got the project in time? Just curious:-)
    2. The following:
    [code]
    i have done that code but it's not well done
    [/code]
    Is completely vauge. (Not to mention, I think I heard the same EXACT statement before...o.0
    [hr][size=1][leftbr].:EvolutionEngine[rightbr][leftbr].:MicroOS Operating System[rightbr][leftbr][link=http://www.mt2002.sitesled.com]Website :: OS Development Series[rightbr][/link][/size]
Sign In or Register to comment.