Discuss I need help with assembly code in the Other Programming Languages forum on Dev Shed. I need help with assembly code A place for discussing programming languages not covered in specific forums such as Assembler, COBOL, etc. - you get the idea.
Posts: 3
Time spent in forums: 10 m 22 sec
Reputation Power: 0
I need help with assembly code
i want to load an image from the dos command line: like LSB.exe image.bmp
here is the program source files (HERE THE LOADING OF THE IMAGE IS DONE BY OPEN WINDOW)
please help me i need to do command line execution of the program....
the LSB.asm saves the result image but i want it displayed in a window
please help i dont know any thing about assembly..
the code is the following
callW macro x
extrn x:PROC
call x
endm
.486
.model flat
;-------------- Data of the Program --------------
Posts: 1,660
Time spent in forums: 1 Week 6 Days 11 h 19 m 55 sec
Reputation Power: 150
WTF are you doing with all this code if you don't know bupkis about ASM? I suggest you pick up a book and learn the basics before you ask any questions. If this is really urgent, go look for whoever dumped you this job and tell the person you know 0% of ASM.
Posts: 3
Time spent in forums: 10 m 22 sec
Reputation Power: 0
sorry but the coder email is not in use
this program is loading a 24-bit bitmap image and then extracts the LSB then it saves the result image in the same name of the loaded image with _LSB extention
the only thing i need is to load the image from the comand line like this LSB.exe image.bmp
and then displays the result image rather than saving it.
i need it badly because my project uses this command line feature...
sorry if i was annoying..
but if you can help me please do..
thanks
Location: Woodland Hills, Los Angeles County, California, USA
Posts: 9,387
Time spent in forums: 1 Month 4 Weeks 1 Day 21 h 39 m 3 sec
Reputation Power: 4080
Is there a good reason that you want this done in assembler and not use a higher level language (say C++?) Note that the asm code is using a bunch of Windows API calls (GetFileNameA, CreateFileA etc.) and parsing the header from the file. You can easily write this in a high level language as well.
__________________ Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne