add newline to stop gnu-as whining
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 26 Mar 2020 11:42:56 +0000 (11:42 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 26 Mar 2020 11:42:56 +0000 (11:42 +0000)
src/soc/simulator/program.py

index 4466f99be87e1d06caa4a905fbd610421b4ba348..b3c1e87fc2fa2bc62ffa645dbc0710a021160fba 100644 (file)
@@ -15,7 +15,7 @@ class Program:
     def __init__(self, instructions):
         if isinstance(instructions, list):
             instructions = '\n'.join(instructions)
-        self.assembly = instructions
+        self.assembly = instructions + '\n' # plus final newline
         self._assemble()
 
     def __enter__(self):