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 :cool:

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.