//MACRO Stll.tailpush Anchor, Node, WReg, FieldDispl= 0 //-------------------------------------------------------------------------------------------------- // // @ 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. // //-------------------------------------------------------------------------------------------------- // // // Get load/store MIs and word length // eval(DVASM.getEnv()[4]); var ld= "L" + abiWID; var st= "S" + abiWID; var wl= abiWLen; var nextField= FieldDispl; // // Set up registers and addresses // var tailAddr= wl + "+" + Anchor; // // Generate code // \ #st 0, #nextField[#Node] // Store null as next in new node \ #ld #WReg, #tailAddr // Load last node addr in list \ IF ( #WReg == 0 ), THEN // Check if last node in list \ #st #Node, #Anchor // Update header addr if so \