Skip to content

0xdeb7ef/emu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emu

This repo is ment to hold my attempts at emulating random stuff that I find interesting.

At the moment, there's only an unfinished CHIP-8 implementation.

My goal is to make it a sort of library that can be used to emulate various different CPUs and/or hardware.

CHIP-8

All the CHIP-8 opcodes have been implemented and tested against the CHIP-8 Test Suite.

The CHIP-8 core passes the the following test ROMs:

  • 1-chip8-logo.ch8
  • 2-ibm-logo.ch8
  • 3-corax+.ch8
  • 4-flags.ch8

The followings tests are currently skipped because they require functionality that hasn't been implemented yet:

  • 5-quirks.ch8
  • 6-keypad.ch8
  • 7-beep.ch8

Things left to do

  • The keyboard opcodes haven't been tested yet.
  • The core does not yet handle the sound and delay timers, so that needs a bit of work to get working.
  • Based on the previous task, the whole emulation cycle needs to be worked on so it can handle different speeds/frequencies, you could probably just do those manually for now but it would be nicer to have the core handle it, maybe a cycle() function.

References

About

A Zig library that offers some simple CPUs to emulate.

Topics

Resources

License

Stars

Watchers

Forks

Languages