Git Product home page Git Product logo

litenes's Introduction

LiteNES

This project is a fork of Stanislav Yaglo's mynes (https://github.com/yaglo/mynes). We mainly refactored the project for brevity and portabilty, by removing unused comments and changing the file structure. LiteNES runs classical roms (e.g., Battle City, Yie Ar Kung-Fu and Super Mario), but has only partial support of NES roms, and does not support the emulation of APU.

The key feature of LiteNES is its portability: the system-call-dependent code is reduced to minimal (only appears in hal.c and main.c). All other sources do not contain any direct or indirect calls to the operating system kernel. Also, the only calls to standard C library are memory movements (e.g., memcpy and memcmp). To port LiteNES to other systems, only slight modification of main.c and re-implementation of hal.c is required.

Compilation

To compile LiteNES, you must have allegro5 library. Usually you can install it in the official software repository (by apt-get, yum, pacman or emerge, depending on your Linux distribution). For Ubuntu users, if you cannot find allegro5 in your sources, please find liballegro5.0 and liballegro5-dev deb package and install them.

Type make in the command line to compile. Resolve any error message until the litenes binary file is created.

Game Play

You need to prepare a NES rom first. Assume it (rom.nes) is located in the same directory as the LiteNES binary. Then in this directory, type ./litenes rom.nes to start the emulator.

Key bindings: UP - W, DOWN - S, LEFT - A, RIGHT - D, SELECT - U, START - I, A - K and B - J. Only one player is supported. Type CTRL C in terminal to exit.

LiteNES running Yie-Ar Kung Fu

litenes's People

Contributors

jiangyy avatar

Watchers

James Cloos 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.