<sect>Usage
<p>grc65 accepts the following options:<tscreen><verb>
-h, -? this help
--f force writing files
-o name name the C output file
-s name name the asm output file
</verb></tscreen>
Default output names are made from input names with extensions replaced by
-<tt/.h/ and <tt/.s/. <bf/grc65/ will not overwrite existing files unless forced
-to do so. That is done to avoid situations where you have <tt/test.c/ and
-<tt/test.grc/ files. Both would put their output into <tt/test.s/. For that
-reason, you should name your resource-files differently than sources, e.g.,
-<tt/resource.grc/ or <tt/apphead.grc/.
+<tt/.h/ and <tt/.s/.
<sect2>Second step -- assembling the application header
<p><verb>
-$ ca65 -t geos resource.s
+$ ca65 -t cbm-geos resource.s
</verb>
And, voilá -- &dquot;<tt/resource.o/&dquot; is ready.
<sect2>Third step -- compiling the code
<p><verb>
-$ cc65 -t geos -O test.c
-$ ca65 -t geos test.s
+$ cc65 -t cbm-geos -O test.c
+$ ca65 -t cbm-geos test.s
</verb>
That way, you have a &dquot;<tt/test.o/&dquot; object file which
contains all of the executable code.
<sect2>Fourth and last step -- linking it together
<p><verb>
-$ ld65 -o test.cvt -t geos resource.o geos.o test.o geos.lib
+$ ld65 -o test.cvt -t cbm-geos resource.o geos.o test.o geos.lib
</verb>
&dquot;<tt/resource.o/&dquot; comes first because it contains the
header. The next one is &dquot;<tt/geos.o/&dquot;, a required starter-code
(<tt/test/) isn't important; the real name, after deconverting, is the DOS name
that was given in the header definition.
-At each step, a <tt/-t geos/ was present on the command-line. That switch is
+At each step, a <tt/-t cbm-geos/ was present on the command-line. That switch is
required for the correct process of GEOS sequential app. building.
&dquot;<tt/cvthead.s/&dquot; -- the first one is a config. file for <bf/ld65/,
and the second one contains the GEOS <tt/.cvt/ header. It can be assembled:
<verb>
-$ ca65 -t geos cvthead.s
+$ ca65 -t cbm-geos cvthead.s
</verb>
Now, we have &dquot;<tt/cvthead.o/&dquot;. The rest of the assembly
sources can be assembled:<verb>
-$ ca65 -t geos vlir0.s
-$ ca65 -t geos vlir1.s
-$ ca65 -t geos vlir2.s
+$ ca65 -t cbm-geos vlir0.s
+$ ca65 -t cbm-geos vlir1.s
+$ ca65 -t cbm-geos vlir2.s
</verb>
Note that the file-names here, although similar to those from the
<tt/VLIR/ section of the <tt/.grc/ file, are not significant. The only thing
</verb>
That is the end. The file &dquot;<tt/output.cvt/&dquot; can be
deconverted under GEOS. Note that <tt/-C cvthead.cfg/ was used on the
-<bf/ld65/ command-line instead of the switch <tt/-t geos/.
+<bf/ld65/ command-line instead of the switch <tt/-t cbm-geos/.