ti68k_err.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* Hey EMACS -*- linux-c -*- */
  2. /* $Id: ti68k_err.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-2006, 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_ERRCODES__
  25. #define __TI68K_ERRCODES__
  26. /* Error codes ERR_... */
  27. /* Error codes must begin at 768 up to 1023 */
  28. // New codes
  29. #define ERR_NONE 0
  30. #define ERR_CANT_OPEN 768
  31. #define ERR_INVALID_IMAGE 770
  32. #define ERR_INVALID_UPGRADE 771
  33. #define ERR_NO_IMAGE 772
  34. #define ERR_INVALID_ROM_SIZE 774
  35. #define ERR_NOT_TI_FILE 775
  36. #define ERR_MALLOC 776
  37. #define ERR_CANT_OPEN_DIR 777
  38. #define ERR_CANT_UPGRADE 778
  39. #define ERR_INVALID_ROM 779
  40. #define ERR_CANT_OPEN_STATE 780
  41. #define ERR_REVISION_MATCH 781
  42. #define ERR_HEADER_MATCH 782
  43. #define ERR_STATE_MATCH 783
  44. #endif