Skip to content

The decoder library for jemu execution and web documentation

License

Notifications You must be signed in to change notification settings

ysyx-org/jemu-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Js.Emu Decoder Library

This library includes structured raw data of ISA related specs.

The data will be needed to either generate runtime core of JEMU (cpu emulator) or to auto-generate a wiki site.

Contributors wanted!

We are looking for coordinators for this project. Any amount and any form of contributions are welcomed.

Please take a look at contribution guide to get started.

Project Structure

  • /arch

    The core directory containing the definitions of all instructions. See instruction definition and instruction documentation format.

  • /lib

    Common utilities and dependencies.

  • /scripts

    Scripts used to build the decoder and parser.

  • /targets

    Manifests declaring which instruction(s) to be included for a specific build.

  • /web

    A magical sub-project converting the build results into a handy manual. The decoder and parser we built in the parent project will be embedded into its runtime core, enabling search and decode of binary instructions.

Build the decoder

# Run at project root
jemu-decoder > npm run build

If you made changes to the content of /arch and want to get it reflected in the webpages, you have to run this command.

Build for web

  1. Build the decoder

    # Run at project root
    jemu-decoder > npm run build

    If you made any change to the content of /arch and want to get it reflected in the webpages, you have to run this command.

  2. Preview webpages

    # Run at web folder
    jemu-decoder/web > npm run dev

    This command will launch a local server showing live updates of the web contents. vite is used under the hood.

    When dev server is running, you can modify the code under /arch, and then manually build the decoder to see live updates.

  3. Build and deploy (only available for YSYX stuff with certain privileges)

    To build for web only (without deploying)

    # Run at web folder (build)
    jemu-decoder/web > npm run build

    To build and deploy (with privileged account)

    # Run at web folder
    jemu-decoder/web > npm run deploy

About

The decoder library for jemu execution and web documentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published