Include a bool for switching emulation modes

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
master
sigonasr2 2 years ago
parent 229509bc3b
commit 32be6c426f
  1. BIN
      C++ProjectTemplate
  2. 2
      main.cpp

Binary file not shown.

@ -57,7 +57,7 @@ public:
std::mt19937 gen; //Standard mersenne_twister_engine seeded with rd() std::mt19937 gen; //Standard mersenne_twister_engine seeded with rd()
std::uniform_int_distribution<> distrib; std::uniform_int_distribution<> distrib;
std::array<Key,16>keymap{X,K1,K2,K3,Q,W,E,A,S,D,Z,C,K4,R,F,V}; std::array<Key,16>keymap{X,K1,K2,K3,Q,W,E,A,S,D,Z,C,K4,R,F,V};
bool USE_ORIGINAL_CHIP8_SET=true; bool USE_ORIGINAL_CHIP8_SET=true; //True means use the original CHIP-8 spec (COSMAC VIP emulation). Set to false to use CHIP-48 spec.
std::string Display8(int number){ std::string Display8(int number){
std::bitset<8>numb(number); std::bitset<8>numb(number);

Loading…
Cancel
Save