示例#1
0
        public IEnumerable <NasmInstruction> WriteConstantTable()
        {
            foreach (var constant in ConstantTable)
            {
                var isString = constant.Key.Type == PrimitiveType.Pointer;

                yield return(NasmInstruction.LabeledCall(
                                 label: constant.Value.LabelName,
                                 name: constant.Value.IsAddress ? "dq" : "equ",
                                 new LiteralParameter(isString ? $"__utf16__(`{constant.Key.ValueText}`)" : constant.Key.ValueText)));
            }
        }