Giter Club home page Giter Club logo

s-oxid8's Introduction

OXID-8: a CHIP-8 / S-CHIP Emulator Developed using the Rust Programming Language

Seminars Project - Group 2

Dependencies

Ensure that you have the following software installed:

Compilation

cargo build --release

Execution

retroarch -L target/release/liboxid_8.so rom.ch8

Where rom.ch8 is the path to the ROM file to be executed.

Changing Emulation Speed

By default, the emulation speed is 10 instructions per frame. Since programs run at 60FPS, this corresponds to 600 instructions per second. Certain programs can benefit from a slower / faster emulation speed. Using the ipf command-line argument, this value can be changed. For example, the following command will make the emulation run at twice the speed.

retroarch -L target/release/liboxid_8.so rom.ch8 ipf=20

Quirks

Certain CHIP-8 programs rely on abnormal instruction behaviour (so-called "quirks") to function properly. These quirks can be enabled from the command line by specifying them after the ROM to load. The following quirks are available:

  • quirk-memory: instructions that write to or read from RAM no longer increment the I register.
  • quirk-shift: shift instructions now shift register VX directly instead of shifting VY and storing the result in VX
  • quirk-collision: draw sprite instruction now stores the number of sprite rows that collided with an existing sprite or were clipped by the bottom of the screen in register VF
  • quirk-resolution: switching between resolutions now clears the frame buffer
  • quirk-lores16: permits drawing 16x16 sprites in low-resolution mode with the DXY0 instruction

As an example, the following command activates both the memory and shift quirks:

retroarch -L target/release/liboxid_8.so rom_quirks.ch8 quirk-memory quirk-shift

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.