chiark / gitweb /
Allow for choosing which ROM to generate in rom.ps
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 24 Jun 2024 13:27:51 +0000 (14:27 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 24 Jun 2024 22:24:55 +0000 (23:24 +0100)
rom.ps

diff --git a/rom.ps b/rom.ps
index 69356453d1abc2fd9bf6f36d59e72ff17840cae3..748e6ea1419dcdc10d4dc84a25583a9a728db5e8 100644 (file)
--- a/rom.ps
+++ b/rom.ps
@@ -4,7 +4,7 @@
 % MAME's emulation of the SAA5050 family.  To produce such an image,
 % use a command like this:
 %
-% gs -P -q -dSAFER -sDEVICE=bit -o saa5051.rom rom.ps
+% gs -P -q -dSAFER -sDEVICE=bit -o saa5051.rom -- rom.ps SAA5051
 %
 % The image can also be compared against images from other sources to
 % detect errors in one or other source.  Currently only the SAA5051
 << /HWResolution [ 72 72 ]
    /PageSize [ 8 960 ] >> setpagedevice
 /Bedstead findfont 10 scalefont setfont
-2 952 moveto
-/SAA5051 findencoding
-32 96 getinterval
-{ glyphshow -6 -10 rmoveto } forall
-showpage
+ARGUMENTS {
+    2 952 moveto
+    cvn findencoding
+    32 96 getinterval
+    { glyphshow -6 -10 rmoveto } forall
+    showpage
+} forall