base.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #define BSNES_VERSION "0.042"
  2. #define BSNES_TITLE "bsnes v" BSNES_VERSION
  3. #define BUSCORE sBus
  4. #define CPUCORE sCPU
  5. #define SMPCORE sSMP
  6. #define DSPCORE sDSP
  7. #define PPUCORE bPPU
  8. //S-DSP can be encapsulated into a state machine using #define magic
  9. //this avoids ~2.048m co_switch() calls per second (~5% speedup)
  10. #define USE_STATE_MACHINE
  11. //FAST_FRAMESKIP disables calculation of RTO during frameskip
  12. //frameskip offers near-zero speedup if RTO is calculated
  13. //accuracy is not affected by this define when frameskipping is off
  14. #define FAST_FRAMESKIP
  15. //game genie + pro action replay code support (~2% speed hit)
  16. #define CHEAT_SYSTEM
  17. #include <libco/libco.h>
  18. #include <nall/algorithm.hpp>
  19. #include <nall/array.hpp>
  20. #include <nall/bit.hpp>
  21. #include <nall/detect.hpp>
  22. #include <nall/endian.hpp>
  23. #include <nall/file.hpp>
  24. #include <nall/moduloarray.hpp>
  25. #include <nall/new.hpp>
  26. #include <nall/platform.hpp>
  27. #include <nall/property.hpp>
  28. #include <nall/stdint.hpp>
  29. #include <nall/string.hpp>
  30. #include <nall/utility.hpp>
  31. #include <nall/vector.hpp>
  32. using namespace nall;
  33. typedef int8_t int8;
  34. typedef int16_t int16;
  35. typedef int32_t int32;
  36. typedef int64_t int64;
  37. typedef uint8_t uint8;
  38. typedef uint16_t uint16;
  39. typedef uint32_t uint32;
  40. typedef uint64_t uint64;
  41. #include "interface.hpp"