This is a simple CHIP-8 emulator written in Odin using the Raylib library. The emulator reads CHIP-8 ROM files, interprets the instructions, and renders the output on a 64x32 pixel display (scaled by 8). For now only added the cpu instructions that runs the classic IBM logo program.
- Emulation of CHIP-8 instructions: Supports basic CHIP-8 operations including memory management and drawing sprites.
- Rendering with Raylib: Uses Raylib for rendering the CHIP-8 display, scaled up for better visibility.
- ROM Loading: Load any CHIP-8 ROM file and run it in the emulator.
-
Odin Compiler: Download the Odin compiler from here.
-
Raylib for Odin: Install Raylib and ensure it is accessible in your Odin environment.
-
Clone this repository:
git clone https://github.com/kaandesu/chip8-emulator-odin.git cd chip8-emulator-odin
-
Compile the emulator
make
-
Run the emulator:
make run
-
Usage
-
Place the CHIP-8 ROM file in the
./demos/
directory. -
Modify the
loadRom
function call to point to your ROM file:loadRom(emulator, "./ibm_logo.ch8")
-
Run the emulator to start the CHIP-8 program.