??? 04/06/07 20:56 Read: times |
#136772 - 10 lines of code to transfer a string Responding to: ???'s previous message |
Mike Stegmaier said:
Now all I have to do is redo my assembler, so that when I write programs, I don't have to have 10 lines of code to transfer a string from one memory location to another. That is in the very nature of assembler! By definition, an assembler produces exactly one machine instruction in its output for each source instruction; therefore, if an 8051 needs 10 instructions to do the transfer, you are going to have to write 10 lines of assembler for it! You could give the impression of needing fewer source lines by making a Macro-Assembler - but that becomes significantly more difficult... |
Topic | Author | Date |
My board works! | 01/01/70 00:00 | |
You may eventually find ... | 01/01/70 00:00 | |
answer | 01/01/70 00:00 | |
How'd you do it? | 01/01/70 00:00 | |
i knew it | 01/01/70 00:00 | |
Are you sure you aren\'t looking in the wrong place | 01/01/70 00:00 | |
. | 01/01/70 00:00 | |
Be sure to adhere to standard syntax | 01/01/70 00:00 | |
free assembler | 01/01/70 00:00 | |
10 lines of code to transfer a string![]() | 01/01/70 00:00 | |
Congrats! | 01/01/70 00:00 |