mem_size.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* Hey EMACS -*- linux-c -*- */
  2. /* $Id: mem_size.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 Lievin, 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_MEMSIZE__
  25. #define __TI68K_MEMSIZE__
  26. /*
  27. Size of some common memory devices.
  28. 0 means not supported & used by the hand-held.
  29. */
  30. #define RAM_SIZE_TI92_I (128*KB)
  31. #define RAM_SIZE_TI92_II (256*KB)
  32. #define RAM_SIZE_TI89 (256*KB)
  33. #define RAM_SIZE_TI92P (256*KB)
  34. #define RAM_SIZE_V200 (256*KB)
  35. #define RAM_SIZE_TI89T (256*KB)
  36. #define ROM_SIZE_TI92_I (1*MB)
  37. #define ROM_SIZE_TI92_II (2*MB)
  38. #define ROM_SIZE_TI89 (2*MB)
  39. #define ROM_SIZE_TI92P (2*MB)
  40. #define ROM_SIZE_V200 (4*MB)
  41. #define ROM_SIZE_TI89T (4*MB)
  42. #define ROM_BASE_TI92_I (0) // 0x200000 or 0x400000
  43. #define ROM_BASE_TI92_II 0x400000
  44. #define ROM_BASE_TI89 0x200000
  45. #define ROM_BASE_TI92P 0x400000
  46. #define ROM_BASE_V200 0x200000
  47. #define ROM_BASE_TI89T 0x800000
  48. #define IO1_SIZE_TI92_I 32
  49. #define IO1_SIZE_TI92_II 32
  50. #define IO1_SIZE_TI89 32
  51. #define IO1_SIZE_TI92P 32
  52. #define IO1_SIZE_V200 32
  53. #define IO1_SIZE_TI89T 32
  54. #define IO2_SIZE_TI92_I 0
  55. #define IO2_SIZE_TI92_II 0
  56. #define IO2_SIZE_TI89 32
  57. #define IO2_SIZE_TI92P 32
  58. #define IO2_SIZE_V200 32
  59. #define IO2_SIZE_TI89T 256 // seems to be 128 instead of 64 ?!
  60. #define IO3_SIZE_TI92_I 0
  61. #define IO3_SIZE_TI92_II 0
  62. #define IO3_SIZE_TI89 0
  63. #define IO3_SIZE_TI92P 0
  64. #define IO3_SIZE_V200 0
  65. #define IO3_SIZE_TI89T 256
  66. #endif