From e18d3ebdd708781e9a2a40144720d2bb340df5be Mon Sep 17 00:00:00 2001 From: Yoshi Askharoun Date: Tue, 6 Feb 2024 13:21:48 -0600 Subject: [PATCH] Add Asm instructions to line number tables --- libs/UIX.Asm/ObjectSection.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/UIX.Asm/ObjectSection.cs b/libs/UIX.Asm/ObjectSection.cs index fbe8772..4f07898 100644 --- a/libs/UIX.Asm/ObjectSection.cs +++ b/libs/UIX.Asm/ObjectSection.cs @@ -33,6 +33,9 @@ public class ObjectSection foreach (var instruction in _instructions) { + // Add entry to line number table + _loadResult.LineNumberTable.AddRecord(writer.DataSize, instruction.Line, instruction.Column); + var opCode = instruction.OpCode; writer.WriteByte(opCode);