Copy Buffer1 to Buffer2 in Intel 586 ASM: Beginner's Guide

  • Thread starter Thread starter liahow
  • Start date Start date
AI Thread Summary
To copy string contents from one buffer to another in assembly language on an Intel 586 architecture without using string functions, one can utilize basic instructions like MOV to transfer data byte by byte. The discussion highlights the importance of understanding the difference between real mode and protected mode in assembly programming. Real mode operates with a memory limit of 1MB, while protected mode allows access to a larger memory space, up to 4GB. This distinction is noted as a factor in the differences observed between DOS in Windows XP and Windows 95, as the latter primarily operated in real mode, impacting memory management and functionality.
liahow
Messages
6
Reaction score
0
In assembly language (on at least an Intel 586 arch) how would I copy the string contents of one buffer to another without using any string functions for copying? I want to copy the contents from buffer1 to buffer2. I'm just beginning to learn how to code in assembly language, so I'm completely lost!
 
Technology news on Phys.org
Are you doing real or protected mode assembly?
 
I was wondering, is it the real mode and protected mode difference that makes the current DOS in windows XP seem different to the DOS in windows 95? I know that real mode is limited to 1mb and protected is something like 4gb.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top