1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-01 13:41:34 +00:00
cc65/src/ca65/objfile.h
cuz 048930265c Fix several VC++ warnings
git-svn-id: svn://svn.cc65.org/cc65/trunk@39 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-06-08 21:02:46 +00:00

122 lines
4.3 KiB
C

/*****************************************************************************/
/* */
/* objfile.h */
/* */
/* Object file writing routines for the ca65 macroassembler */
/* */
/* */
/* */
/* (C) 1998 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
/* warranty. In no event will the authors be held liable for any damages */
/* arising from the use of this software. */
/* */
/* Permission is granted to anyone to use this software for any purpose, */
/* including commercial applications, and to alter it and redistribute it */
/* freely, subject to the following restrictions: */
/* */
/* 1. The origin of this software must not be misrepresented; you must not */
/* claim that you wrote the original software. If you use this software */
/* in a product, an acknowledgment in the product documentation would be */
/* appreciated but is not required. */
/* 2. Altered source versions must be plainly marked as such, and must not */
/* be misrepresented as being the original software. */
/* 3. This notice may not be removed or altered from any source */
/* distribution. */
/* */
/*****************************************************************************/
#ifndef OBJFILE_H
#define OBJFILE_H
#include "../common/filepos.h"
/*****************************************************************************/
/* Code */
/*****************************************************************************/
void ObjOpen (void);
/* Open the object file for writing, write a dummy header */
void ObjClose (void);
/* Write an update header and close the object file. */
void ObjWrite8 (unsigned V);
/* Write an 8 bit value to the file */
void ObjWrite16 (unsigned V);
/* Write a 16 bit value to the file */
void ObjWrite24 (unsigned long V);
/* Write a 24 bit value to the file */
void ObjWrite32 (unsigned long V);
/* Write a 32 bit value to the file */
void ObjWriteStr (const char* S);
/* Write a string to the object file */
void ObjWriteData (const void* Data, unsigned Size);
/* Write literal data to the file */
void ObjWritePos (const FilePos* Pos);
/* Write a file position to the object file */
void ObjStartOptions (void);
/* Mark the start of the option section */
void ObjEndOptions (void);
/* Mark the end of the option section */
void ObjStartFiles (void);
/* Mark the start of the files section */
void ObjEndFiles (void);
/* Mark the end of the files section */
void ObjStartSegments (void);
/* Mark the start of the segment section */
void ObjEndSegments (void);
/* Mark the end of the segment section */
void ObjStartImports (void);
/* Mark the start of the import section */
void ObjEndImports (void);
/* Mark the end of the import section */
void ObjStartExports (void);
/* Mark the start of the export section */
void ObjEndExports (void);
/* Mark the end of the export section */
void ObjStartDbgSyms (void);
/* Mark the start of the debug symbol section */
void ObjEndDbgSyms (void);
/* Mark the end of the debug symbol section */
/* End of objfile.h */
#endif