First public commit.
This commit is contained in:
parent
2a48f52979
commit
4bac9d83ed
288 changed files with 18417 additions and 1076 deletions
16
lenser/c16/exporter.py
Normal file
16
lenser/c16/exporter.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
"""Build a Commodore 16 .prg (loaded + run via MAME quickload / on real HW)."""
|
||||
from __future__ import annotations
|
||||
|
||||
from .viewer import assemble
|
||||
|
||||
_EXTS = (".prg", ".p00")
|
||||
|
||||
|
||||
def export_prg(conv, output_path, source_path=None, display="forever",
|
||||
seconds=0, video="ntsc"):
|
||||
if not output_path.lower().endswith(_EXTS):
|
||||
output_path += ".prg"
|
||||
prg = assemble.build_prg(bytes(conv.data))
|
||||
with open(output_path, "wb") as f:
|
||||
f.write(prg)
|
||||
return output_path
|
||||
Loading…
Add table
Add a link
Reference in a new issue