ti68k_def.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* Hey EMACS -*- linux-c -*- */
  2. /* $Id: ti68k_def.h 2268 2006-11-06 17:18:51Z roms $ */
  3. /* TiEmu - Tiemu Is an EMUlator
  4. *
  5. * Copyright (c) 2000, Thomas Corvazier, Romain Lievin
  6. * Copyright (c) 2001-2002, Romain Liévin, Julien Blache
  7. * Copyright (c) 2003-2004, Romain Liévin
  8. * Copyright (c) 2005, Romain Liévin, Kevin Kofler
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
  23. */
  24. #ifndef __TI68K_DEFS__
  25. #define __TI68K_DEFS__
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. /* Constants */
  30. #define MAXCHARS 256
  31. #define TI92 (1 << 0)
  32. #define TI89 (1 << 1)
  33. #define TI92p (1 << 2)
  34. #define V200 (1 << 3)
  35. #define TI89t (1 << 4)
  36. #define CALC_MAX TI89t
  37. #define EXTERNAL 0
  38. #define INTERNAL 1
  39. #define EPROM_ROM 0
  40. #define FLASH_ROM 2
  41. #define KB (1024)
  42. #define MB (1024*KB)
  43. #define HW1 1
  44. #define HW2 2
  45. #define HW3 3
  46. #define HW4 4
  47. #define LCDMEM_W 240 // LCD _memory_ height
  48. #define LCDMEM_H 128 // LCD _memory_ height
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. #endif