944,044 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 4751
  • Assembly RSS
Nov 3rd, 2006
0

Store files data into specified memory (RAM) address - help?

Expand Post »
Hello. Im new here and at but a wee little age of 14, so go easy on me :-|

Anyways... Before I begin, I want to make a note I can use inline assembly with C, so the loading and storing of the file's data into a buffer is already done. I just need to use assembly and move that buffer/data to a specified address in RAM... Unless someone knows a C routine for this, can anyone please assist me in anyway?

Thanks alot if you can
Last edited by sg57; Nov 3rd, 2006 at 1:11 am.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sg57 is offline Offline
1 posts
since Nov 2006
Nov 3rd, 2006
0

Re: Store files data into specified memory (RAM) address - help?

depends on the operating system. MS-Windows and *nix: you can not do that because the os will not permit it unless the address is one which you got from allocating memory using malloc().

in assembly just store the destination address in edi register, source address in esi register, number of bytes to copy in ecx, then rep movsb instruction. There are quite a few posts on this board that demonstrate this, like this one.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,954 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: stopwatch code using mips (urgently neede)
Next Thread in Assembly Forum Timeline: need help. asembler basics





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC