Skip to content

Commit

Permalink
Assembler: Fix line numbers in reports
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWiederhake committed Jun 23, 2023
1 parent 4aa5e0d commit 72b4f19
Show file tree
Hide file tree
Showing 2 changed files with 284 additions and 283 deletions.
2 changes: 1 addition & 1 deletion assembler/asm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ def compile_to_segment(asm_text):
"""
asm = Assembler()
for i, line in enumerate(asm_text.split("\n")):
if not asm.parse_line(line, i):
if not asm.parse_line(line, i + 1):
return None, asm.error_log
return asm.segment_bytes(), asm.error_log

Expand Down
Loading

0 comments on commit 72b4f19

Please sign in to comment.