Open ghost opened 4 years ago
You can convert a rom from the .ch8 file to a C uint8_t array using the Linux command tool xxd, for example:
xxd -i game.ch8
Then you need to pass a pointer to this array and the array size in bytes to the chip8ResetMem function.
I used to run linux before i changed my hardware. now i'm stuck with windows. I also found a script that can convert it too. So i basically used this https://hastebin.com/erenosefav.cpp with this https://hastebin.com/fawayiciqu.cpp Doing Serial.println(chip8ResetMem(rom,sizeof(rom))); brings me the output "0" And i'm able to confirm that the demo i wrote should be working in Chip-8. Do i have to switch the compatibility and vertical wrap settings to make it possibly work? EDIT: The code block screwed up formatting. replaced with hastebin links EDIT 2: default rom from the sdl frontend gives the same output "0"
I almost ran it on Esp32. But the main problem is that some roms just don't work. Is there any specific way they should be implemented? Like is it possible to turn the raw ch8 data as a string and convert it to a playable format?