ASSEMBLY LANGUAGE PROGRAMMING PART 11 ===================================== Well, it's time for another installment. Last time, we looked at copying a block of memory from the BASIC address space to extended memory. This time, I present the code for reversing the process, which, truth be told, is only different by 2 instructions from last time. Essentially, we will be using the same parameter passing technique, including the same order of passing parameters, but instead of copying from BASIC to extended memory we will be copying from extended to BASIC memory. For the sake of brevity, I will not include the code library this relies upon, however, should our editor decide there is plenty of space for them, they are identical to the files from the last installment. Should you have internet access and wish these files, feel free to email me and request them. My address is lost@l-w.net. This routine combined with the one from last time will allow a large amount of data to be directly accessible by a BASIC program. Indeed, a part of memory could be reserved as a buffer and data be copied to/from this buffer. Granted, LPEEK and LPOKE allow direct access to the data, but they are slower than moving a block at once and accessing that block with conventional PEEK and POKE. There are numerous applications of these routines. It is my hope that anyone who has been following this series now has some solid ideas on how to proceed with writing programs in Assembly Language. Having provided you with an arsenal of routines that can be used in your own programs and with two examples of using these routines, I expect you will be able to do some remarkable things. Feel free to use any of the code presented herein in your own programs and modify it in any way you desire. I do not plan on writing any further articles in this series as I am running out of ideas, and time for that matter. However, should I write interesting code in the future, I will attempt to dissect it and submit it to CFDM. Should anyone have any ideas on an interesting program, feel free to email me at lost@l-w.net.