main.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. dasm-tigcc - Disassembler for TI calculators
  3. Copyright (C) 2000-2002 Thomas Nussbaumer
  4. Copyright (C) 2005 Lionel Debroux
  5. Copyright (C) 2007 Kevin Kofler
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software Foundation,
  16. Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  17. */
  18. #include <stdint.h>
  19. extern int calc_type;
  20. extern unsigned char *ram;
  21. extern unsigned char *rom;
  22. extern unsigned char unused[0x10000];
  23. extern uint32_t rom_base;
  24. extern uint32_t rom_size;
  25. extern uint32_t ram_size;
  26. extern uint32_t entry_point;
  27. void PrintAddress (int32_t reladdr, uint32_t absaddr, int flags, void *stream,
  28. void (*fprintf_f) (void *, const char *, ...),
  29. void (*fputs_f) (const char *, void *));
  30. void Offset2Name(int addr);