Unable to open input file masm
Those who had universe knowledges can control the world by a micro processor. Member Posts: Global Moderator Member Gender: Posts: Thankyou all of you for trying to help me out.
First of all honestly I don't know how file handling works in assembly language but written few lines of code by myself with the help of my text book. I am trying to read data from file and put in the array and then calculate those values like addition, subtraction etc.
Here I am going to post my code please guys help me out with my code. Thanks in advance. It's quite helpful if you are an absolute beginner, and have no idea what the processor is actually executing, when you use the various standard instructions in your code.
However, Michael is right. When you write routines for the Windows operating system, many of the user mode APIs actually call another service routine in the operating system kernel after validating parameters. This is often for security reasons, or for interoperability with any number of other components unknown to you when you write the routine, so, it's more reliable to use the standard Windows APIs mentioned in Michael's post, above.
Irvine's code is largely obsolete, especially if you are writing for anything newer than Windows Can you show us, for example, the code from Irvine's library for the call: openInputFile? Same thing with ReadFromFile, I'm one of the few that's retro enough to be familiar with it. Another advantage to using the Windows APIs directly with the invoke syntax , is that they all return error or success values in the eax register, which you can easily check, and then write conditional branches in your code based on the return value.
If you don't understand what I mean, The guys that populate this forum are incredibly knowledgeable. Raider of the lost code Member Gender: Posts: Hi xerox, A simple example : Code:.
FileSize dd? If you save that file in windows with h1. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 5 years, 10 months ago. Active 5 years, 7 months ago. Viewed 18k times. Ronny Brendel 4, 5 5 gold badges 34 34 silver badges 54 54 bronze badges. Add a comment. Active Oldest Votes. Tim Penner Tim Penner 3, 19 19 silver badges 35 35 bronze badges.
Thanx man. It's located on my desktop and don't know how to specify it's location. Ilya Chumakov Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
0コメント