//MACRO Call.reg RegEp, Arg[]=[], SaveReg[]=[], SaveFReg[]= [], Stack=!"" //-------------------------------------------------------------------------------------------------- // // @ 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. // //-------------------------------------------------------------------------------------------------- // if (Label !== "") DVASM.formalLine(Label, "BYTE", "0[0]", ""); // // Pre-process // DVASM.formatLine("", "__PreCall", "[" + Arg + "], [" + SaveReg + "], [" + SaveFReg + "], " + Stack, ""); // // Issue call // DVASM.formatLine("", "JALR", "ra, 0[" + RegEp + "]", ""); // // Post-process // DVASM.formatLine("", "__PostCall", "[" + SaveReg + "], [" + SaveFReg + "], " + Stack, "");