Viitor_cc65/usr/share/doc/cc65/webdoc/apple2-2.html
kueller 223cc6685e Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_cc65@5933 504e572c-2e33-0410-9681-be2bf7408885
2011-01-03 10:48:06 +00:00

48 lines
1.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.20">
<TITLE>Apple&nbsp;][ specific information for cc65: Binary format</TITLE>
<LINK HREF="apple2-3.html" REL=next>
<LINK HREF="apple2-1.html" REL=previous>
<LINK HREF="apple2.html#toc2" REL=contents>
</HEAD>
<BODY>
<A HREF="apple2-3.html">Next</A>
<A HREF="apple2-1.html">Previous</A>
<A HREF="apple2.html#toc2">Contents</A>
<HR>
<H2><A NAME="s2">2.</A> <A HREF="apple2.html#toc2">Binary format</A></H2>
<P>The standard binary output format generated by the linker for the
Apple&nbsp;][ target is a machine language program with a 4 byte DOS
3.3 header. The standard load address is $800.</P>
<P>The DOS header is in its own segment named <CODE>EXEHDR</CODE>. If you don't want the
header for some reason, you can change</P>
<P>
<PRE>
HEADER: start = $0000, size = $4, file = %O;
</PRE>
</P>
<P>to</P>
<P>
<PRE>
HEADER: start = $0000, size = $4, file = "";
</PRE>
</P>
<P>in the linker configuration to have the linker remove it.</P>
<P>Please note that there is a "Apple&nbsp;][ ProDOS 8 system program
for loading binary programs" available in the cc65 User Contributions section.
It adds all benefits of a ProDOS 8 system program to the standard binary
program generated by the linker for the Apple&nbsp;][ target.</P>
<HR>
<A HREF="apple2-3.html">Next</A>
<A HREF="apple2-1.html">Previous</A>
<A HREF="apple2.html#toc2">Contents</A>
</BODY>
</HTML>