48 lines
1.5 KiB
HTML
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 ][ 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 ][ 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 ][ 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 ][ 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>
|