//MACRO FrameWorkDef //-------------------------------------------------------------------------------------------------- // // @ 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. // //-------------------------------------------------------------------------------------------------- // // // Define basic symbols - Label is ignored // if (Label !== "") DVASM.putInfo("Label [" + Label + "] specified - it will be ignored"); DVASM.formatLine("TRUE", "EQU", "1", ""); DVASM.formatLine("FALSE", "EQU", "0", ""); DVASM.formatLine("YES", "EQU", "1", ""); DVASM.formatLine("NO", "EQU", "0", ""); // // Floating math constants // DVASM.formatLine("PI", "EQU", "3.14159265358979323846264338327950288419716939937510582097494459230781640628620899", ""); DVASM.formatLine("NAPIER", "EQU", "2.71828182845904523536028747135266249775724709369995957496696762772407663035354759", ""); // // Define ELF section types // DVASM.insertLine("// Define valid section types"); DVASM.formatLine("ELF_SHT_PROGBITS ", "EQU", "1", ""); DVASM.formatLine("ELF_SHT_NOTE ", "EQU", "7", ""); DVASM.formatLine("ELF_SHT_NOBITS ", "EQU", "8", ""); // // Define ELF section attributes // DVASM.insertLine("// Define valid section attributes"); DVASM.formatLine("ELF_SHF_WRITE ", "EQU", "1", ""); DVASM.formatLine("ELF_SHF_ALLOC ", "EQU", "2", ""); DVASM.formatLine("ELF_SHF_EXECINSTR", "EQU", "4", ""); // // Define ELF symbol bindings // DVASM.insertLine("// Define valid symbol bindings"); DVASM.formatLine("ELF_STB_LOCAL ", "EQU", "0", ""); DVASM.formatLine("ELF_STB_GLOBAL ", "EQU", "1", ""); DVASM.formatLine("ELF_STB_WEAK ", "EQU", "2", ""); // // Define ELF symbol types // DVASM.insertLine("// Define valid symbol types"); DVASM.formatLine("ELF_STT_NOTYPE ", "EQU", "0", ""); DVASM.formatLine("ELF_STT_OBJECT ", "EQU", "1", ""); DVASM.formatLine("ELF_STT_FUNC ", "EQU", "2", ""); DVASM.formatLine("ELF_STT_SECTION ", "EQU", "3", ""); DVASM.formatLine("ELF_STT_FILE ", "EQU", "4", "");