smc.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. smc.h - Super Magic Card support for uCON64
  3. Copyright (c) 2003 dbjh
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. */
  16. #ifndef SMC_H
  17. #define SMC_H
  18. extern const st_getopt2_t smc_usage[];
  19. typedef struct st_smc_header
  20. {
  21. unsigned char emulation1;
  22. unsigned char emulation2;
  23. unsigned char pad[6];
  24. unsigned char id1;
  25. unsigned char id2;
  26. unsigned char type;
  27. unsigned char pad2[501];
  28. } st_smc_header_t;
  29. #define SMC_HEADER_START 0
  30. #define SMC_HEADER_LEN (sizeof (st_smc_header_t))
  31. #define SMC_TRAINER 0x40
  32. #ifdef USE_PARALLEL
  33. extern int smc_write_rom (const char *filename, unsigned int parport);
  34. extern int smc_read_rts (const char *filename, unsigned int parport);
  35. extern int smc_write_rts (const char *filename, unsigned int parport);
  36. #endif
  37. #endif // SMC_H