Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

lx.h

Go to the documentation of this file.
00001 
00006 /*
00007  *  The contents of this file are subject to the Mozilla Public License
00008  *  Version 1.0 (the "License"); you may not use this file except in
00009  *  compliance with the License. You may obtain a copy of the License at
00010  *  http://www.mozilla.org/MPL/
00011  *
00012  *  Software distributed under the License is distributed on an "AS IS"
00013  *  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
00014  *  License for the specific language governing rights and limitations
00015  *  under the License.
00016  *
00017  *  The Original Code is legOS code, released October 2, 1999.
00018  *
00019  *  The Initial Developer of the Original Code is Markus L. Noga.
00020  *  Portions created by Markus L. Noga are Copyright (C) 1999
00021  *  Markus L. Noga. All Rights Reserved.
00022  *
00023  *  Contributor(s): everyone discussing LNP at LUGNET
00024  */
00025  
00026 #ifndef __lx_h__
00027 #define __lx_h__
00028 
00029 #define HEADER_FIELDS 8       
00030 
00031 typedef struct {
00032   unsigned short version;     
00033   unsigned short base;        
00034   unsigned short text_size;   
00035   unsigned short data_size;   
00036   unsigned short bss_size;    
00037   unsigned short stack_size;  
00038   unsigned short offset;      
00039   unsigned short num_relocs;  
00040   
00041   unsigned char  *text;       
00042   unsigned short *reloc;      
00043 } lx_t;                       
00044 
00045 
00046 
00048 int lx_write(const lx_t *lx,const unsigned char *filename);
00049 
00051 int lx_read(lx_t *lx,const unsigned char *filename);
00052 
00054 void lx_relocate(lx_t *lx,unsigned short base);
00055 
00056 #endif // __lx_h__
00057 

Generated on Fri Feb 25 08:02:39 2005 for brickos by  doxygen 1.3.9.1