One problem I often face is figuring out what kind of data to use to store the contents of a binary file. For example, when I start a simpler emulator project like CHIP8 or Gameboy, I usually use a 8-bit value data type as unsigned char
or std::uint8_t
because I know the games of that time were usually 8- Bits.
But when it comes to a more "recent" console such as a Nitendo 64? This is more complex because of what I've researched, there are several types of ROMs of this format with different data such as Big Endians and Low Endians, so how can I find out which type is most suitable for storing these ROMs or any other ROM of any other console?