![]() |
urgent: please EXPERTS: convert C to assembly
HI, i am new here & i urgently need help :o
I need to rewrite this code in assembly language making the right adjusments :
INTEGER B = 0please please please i really need this urgently iam drawning in search & iam new in programming :( . help me. my professor will kill me & i will appreciate your help very much it really means alot for me. |
gcc -S file.c ..:)
your professor should be there for questions, go see him. We can teach you assembley in a post. |
:) thanku. nice to take time & reply.
u think i want the nswer ready? well, no it's not this. our pro. is not the kind of professors that might answer. this is just a course in microprocessor lab & he gave us the assignment & did not teach us these stuff (self study i think) but i am new & i really spent a lot of hours searching & i didn't get it. it's all driving me crazy with all the code & commands i see & i don't understand a bit. + i searched 3 books & not get any clue :confused: is this it? u won't help me??? :( ok just give me aclue & i will continue my self. i want to learn please :) regards |
:
.file "test.c" |
Quote:
|
thanku Dizzutch, tempest, Machiavelli, and all those who passed by.
i am sorrrrrrry for the misunderstanding. but i am REALLY NEW. & feel bad about my unconsciousness. in fact i use command prompt (DEBUG) to write the code, till now we have not met any of the assemblers i saw many talk about in the internet, like MASM, RASM etc.. if i am not wrong. again thanks alot. & sorry for not mentioning this in the beginning. & tempest i dont get the code u wrote, :o sorry here is the code i felt will work but am not sure coz i don't know how to test :confused: :
MOV BX,0 ; THIS IS THE B=0 |
In the debug util. . .
I don't know exactly how much you know, so I'll walk you through this step by step (btw, this is on how to test your program).
1.) type 'a' 2.) type your code 3.) type 'n'+(insert desired name of program here)+'.com' or '.exe' (depends on presence or lack of stack; since you're a newbie, it's probably .com) 4.) type 'RCX' 5.) type 'A' 6.) type 'w' 7.) type 'q' now just go to the directory where your program was and run the program by the name you gave it in step 3 (minus the 'n') Hope this helps. I know assembly's hard (trust me) :) |
thank you, i couldnot follow. & yes assembly is difficult. right now we are using the turbo pascal editor.
regards |
I suggest you download MASM (or the likes) as it just makes it soo much easier.
Thanx for that gcc tip, I never new :) |
| All times are GMT -5. The time now is 10:55 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC