npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

boone8

v0.2.0

Published

<div align="center"> <h1><code>Boone8</code></h1> A Chip8 Emulator created in Rust and compiled to WebAssembly 🦀 </div>

Downloads

4

Readme

Example Usage

You can get a Chip8 interface up and running by using the example under the examples folder. However, if wrestling with WASM doesn't seem like your cup of tea, the example is also hosted at https://jarrodboone.info/Projects/Chip8

About the JavaScript API

The API exposed by the WASM module allows any form of JavaScript to import the memory and methods of the Chip8 structure created in the rust code!

API Methods

| Name | Params | Usage | |---|---|:---| |tick||Execute a cycle in the Chip8's CPU. You'd want to call this in a loop in order to start processing the opcodes from the loaded ROM.| |reset||Resets the Chip8's memory back to it's original state.| |get_memory||Returns a pointer to the storage memory. You'd want to store this in a new Uint8Array in order to retrieve it from the WASM memory. |get_video||Returns a pointer to the video memory. Same as get_memory(), you'd want to use a Uint8Array for storage.| |get_index||Returns the 16-bit index register used to store memory locations that are used in operations.| |get_pc||Returns the 16-bit program counter that holds the address to the next instruction that the Chip8 will execute.| |get_registers||Returns a pointer to the 16 8-bit registers used to store memory used in operations| |get_stack_ptr||Returns a pointer to the 16 16-bit stack array, used to keep track of the order of execution of the CPU| |get_stack_index||Get the index that keeps track of where we are in the CPU's stack| |get_opcode||Returns the 16-bit opcode that is being executed| |get_delay_timer||Returns the 8-bit timer used to signal delays when it !== 0| |get_sound_timer||Returns the 8-bit timer used to signal that a sound should be played when it !== 0| |set_key_down|key: usize|Signals that the key address specified should be set to true| |set_key_up|key: usize|Signals that the key address specified should be set to false|