1 /*****************************************************************************/
5 /* Object file writing routines for the ca65 macroassembler */
9 /* (C) 1998-2000 Ullrich von Bassewitz */
11 /* D-70597 Stuttgart */
12 /* EMail: uz@musoftware.de */
15 /* This software is provided 'as-is', without any expressed or implied */
16 /* warranty. In no event will the authors be held liable for any damages */
17 /* arising from the use of this software. */
19 /* Permission is granted to anyone to use this software for any purpose, */
20 /* including commercial applications, and to alter it and redistribute it */
21 /* freely, subject to the following restrictions: */
23 /* 1. The origin of this software must not be misrepresented; you must not */
24 /* claim that you wrote the original software. If you use this software */
25 /* in a product, an acknowledgment in the product documentation would be */
26 /* appreciated but is not required. */
27 /* 2. Altered source versions must be plainly marked as such, and must not */
28 /* be misrepresented as being the original software. */
29 /* 3. This notice may not be removed or altered from any source */
32 /*****************************************************************************/
46 /*****************************************************************************/
48 /*****************************************************************************/
53 /* Open the object file for writing, write a dummy header */
56 /* Write an update header and close the object file. */
58 void ObjWrite8 (unsigned V);
59 /* Write an 8 bit value to the file */
61 void ObjWrite16 (unsigned V);
62 /* Write a 16 bit value to the file */
64 void ObjWrite24 (unsigned long V);
65 /* Write a 24 bit value to the file */
67 void ObjWrite32 (unsigned long V);
68 /* Write a 32 bit value to the file */
70 void ObjWriteVar (unsigned long V);
71 /* Write a variable sized value to the file in special encoding */
73 void ObjWriteStr (const char* S);
74 /* Write a string to the object file */
76 void ObjWriteData (const void* Data, unsigned Size);
77 /* Write literal data to the file */
79 void ObjWritePos (const FilePos* Pos);
80 /* Write a file position to the object file */
82 void ObjStartOptions (void);
83 /* Mark the start of the option section */
85 void ObjEndOptions (void);
86 /* Mark the end of the option section */
88 void ObjStartFiles (void);
89 /* Mark the start of the files section */
91 void ObjEndFiles (void);
92 /* Mark the end of the files section */
94 void ObjStartSegments (void);
95 /* Mark the start of the segment section */
97 void ObjEndSegments (void);
98 /* Mark the end of the segment section */
100 void ObjStartImports (void);
101 /* Mark the start of the import section */
103 void ObjEndImports (void);
104 /* Mark the end of the import section */
106 void ObjStartExports (void);
107 /* Mark the start of the export section */
109 void ObjEndExports (void);
110 /* Mark the end of the export section */
112 void ObjStartDbgSyms (void);
113 /* Mark the start of the debug symbol section */
115 void ObjEndDbgSyms (void);
116 /* Mark the end of the debug symbol section */
120 /* End of objfile.h */