CHIP-8 Rust emu
- 6 Devlogs
- 14 Total hours
Building a Chip-8 Emulator (for like the 3rd time) but in Rust to learn about emulation
Building a Chip-8 Emulator (for like the 3rd time) but in Rust to learn about emulation
Finished with the audio and the readMe.
So project finished!!
It was fun, I have already tried making a chip-8 emulator some other times, but never got around to finishing it so, this time I did.
I plan on making one for the 6502 (Apple Computer)
Finished today with a functional emulator, you can play games and everything. I finished all the opcodes, also fixing some mistakes that broke the whole thing (interpreted some opcodes wrong) and some display fixes.
I also aded if you hit Esc the game closes and if you hit Enter the emu reloads.
The only thing left is some audio, and the readme, also to compile executables and binaries.
Spent a loooong while, display and some other work.
I tried to make a purelly terminal based emu with ratatui, but since terminals are weird, I couldn’t get the Image to display perfectly with the terminal, so I opted to a regular window, using winit and pixels to render the pixel buffer.
I still have to separate the display code into the display file (maybe not sure abt this one) add the timer logic, and the stack logic and opcodes, after that, input, then Im set
I added most opcodes and some code formatting, I will now get to diapky and input using
Re structured some code and added opcode handling and implemented the first op-codes
Made the Chip8 Struct with all the vm’s properties.
Made a function to initialize the struct and another to load the desired program into memory starting at 0x200 as the spec sheet says