| | |
Store files data into specified memory (RAM) address - help?
![]() |
•
•
Join Date: Nov 2006
Posts: 1
Reputation:
Solved Threads: 0
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
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.
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.
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.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- fstream Tutorial (C++)
- segment register? (Assembly)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- how to store and retrieve data from cookies (ASP.NET)
- Mac Memory Problems (OS X)
- Writing mp3 files to data files (OS X)
- Question about memory/RAM (Motherboards, CPUs and RAM)
- accessing private data members (C++)
Other Threads in the Assembly Forum
- Previous Thread: stopwatch code using mips (urgently neede)
- Next Thread: need help. asembler basics
| Thread Tools | Search this Thread |






