//MACRO String.copy ToString, FromString, WReg //-------------------------------------------------------------------------------------------------- // // @ CopyRight Roberti & Parau Enterprises, Inc. 2021-2023 // // This work is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License. // To view a copy of this license, visit http://creativecommons.org/licenses/by-nd/4.0/ // or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. // //-------------------------------------------------------------------------------------------------- // // // Copy NUL terminated string // \#Label WHILE \ LB #WReg, 0[#FromString] // Load next 'from' byte \ SB #WReg, 0[#ToString] // Store byte into 'to string' \ ADDI #FromString, 1 // Load next 'from' byte address \ ADDI #ToString, 1 // Load next 'to' byte address \ ENDWHILE Condition= ( #WReg == 0 ) // Done if null byte