We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 166eb15 commit 302ab68Copy full SHA for 302ab68
SharpRISCV.Core/RiscVAssembler.cs
@@ -190,7 +190,8 @@ public static void ProcessDataLables(string[] code)
190
{
191
string extractedString = match.Groups[0].Value;
192
string data = extractedString.Substring(1, extractedString.Length - 2);
193
- byte[] b = Encoding.ASCII.GetBytes(data);
+ data = data.Replace("\\n", "\n");
194
+ byte[] b = new UTF8Encoding(true).GetBytes(data);
195
DataSection.Add(b);
196
DataSection.Add(new byte[] { 0 });
197
Address.GetAndIncreseAddress(b.Length + 1);
0 commit comments