GithubHelp home page GithubHelp logo

chip8's Introduction

๐Ÿ‘พ Chip-8 Emulator ๐Ÿ‘พ

CHIP-8 emulator written in pure Go. ๐Ÿ•น๏ธ

Chip-8 Emulator

Summary ๐Ÿ“–

I did this little project out of curiosity, to find out how an emulator worked, how the first video games worked and how the programmers of that time dealt with solving and making problems with hardware with very little power.

I invite you to improve the project, if you find something that can be improved, you can make a pull request. ๐Ÿซก

I will improve the emulator gradually.

TODO ๐Ÿ“

I'll be working in some issues to improve the emulator

  • Use of channels to capture the Quit or interrupt the emulation execution.
  • Sound speaker / beeper with SDL Library
  • Delay timer to process the instruction to 60Hz
  • Improve the code, more modular.
  • Resolves incompatibility issues, now only works with some games, not all.
  • Catch system signals

Built with ๐Ÿงฐ

Docs ๐Ÿ”

Chip-8 Documentation

Usage ๐Ÿ“

I need to improve this but, at the moment the only thing you need to do is to get the Space Invaders ROM with file extension ".c8" and put in a directory, and in the main.go file set the file path.

Then, the only thing you need to do is RUN the program with go run cmd/chip8/main.go or if you want to compiled version, with go build cmd/chip8/main.go and enjoy ๐Ÿฅฐ.

Memory Map diagram

+---------------+= 0xFFF (4095) End of Chip-8 RAM
|               |
|               |
|               |
|               |
|               |
| 0x200 to 0xFFF|
|     Chip-8    |
| Program / Data|
|     Space     |
|               |
|               |
|               |
+- - - - - - - -+= 0x600 (1536) Start of ETI 660 Chip-8 programs
|               |
|               |
|               |
+---------------+= 0x200 (512) Start of most Chip-8 programs
| 0x000 to 0x1FF|
| Reserved for  |
|  interpreter  |
+---------------+= 0x000 (0) Start of Chip-8 RAM

The original CHIP-8 used a hexadecimal keyboard so, for these times I changed the keys to normal keyboards:

Keypad       Keyboard
+-+-+-+-+    +-+-+-+-+
|1|2|3|C|    |1|2|3|4|
+-+-+-+-+    +-+-+-+-+
|4|5|6|D|    |Q|W|E|R|
+-+-+-+-+ => +-+-+-+-+
|7|8|9|E|    |A|S|D|F|
+-+-+-+-+    +-+-+-+-+
|A|0|B|F|    |Z|X|C|V|
+-+-+-+-+    +-+-+-+-+

Made with โค๏ธ by Miguel Toledano

My website Codingtaco

chip8's People

Contributors

migantoju avatar

Stargazers

juan jose  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.