diff options
Diffstat (limited to '')
| -rw-r--r-- | src/utils/assembler.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/assembler.ts b/src/utils/assembler.ts index 4823937..278e944 100644 --- a/src/utils/assembler.ts +++ b/src/utils/assembler.ts @@ -29,7 +29,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -interface LabelTable { +export interface LabelTable { [key: string]: number; } @@ -938,7 +938,7 @@ function passTwo(lineTable: LineTablePass1[], labels: LabelTable) { } } - return { errors: errorTable, bytes: resultTable, lines: lineTable as LineTable[] }; + return { errors: errorTable, bytes: resultTable, lines: lineTable as LineTable[], labels }; } /** @@ -951,6 +951,7 @@ export function assemble(input: string) { bytes: new Uint8Array(0), errors: mid.errors, lines: [], + labels: {}, }; } return passTwo(mid.lines, mid.labels); |
