1 /* ".LST" file output for gpasm 2 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 3 James Bowman, Craig Franklin 4 Copyright (C) 2012 Borut Razem 5 6 This file is part of gputils. 7 8 gputils is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 2, or (at your option) 11 any later version. 12 13 gputils is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with gputils; see the file COPYING. If not, write to 20 the Free Software Foundation, 59 Temple Place - Suite 330, 21 Boston, MA 02111-1307, USA. */ 22 23 #ifndef __LST_H__ 24 #define __LST_H__ 25 #include <stdarg.h> 26 27 /* MPASM(X) compatible listing */ 28 #define MPASM_LIST 29 30 #ifdef MPASM_LIST 31 #define LST_LINENUM_POS 22 32 #else 33 #define LST_LINENUM_POS 15 34 #endif 35 #define LST_SRC_POS (LST_LINENUM_POS + 6) 36 37 extern void lst_line(const char *format, ...); 38 extern void lst_err_line(const char *type, unsigned int code, const char *format, va_list args); 39 extern void lst_throw(void); 40 extern void lst_init(void); 41 extern void lst_memory_map(MemBlock_t *m); 42 extern void lst_close(void); 43 extern void lst_format_line(const char *line, unsigned int value); 44 extern void lst_symbol_table(void); 45 extern void lst_page_start(void); 46 extern void preproc_init(void); 47 extern void preproc_emit(void); 48 49 #endif 50