Giter Site home page Giter Site logo

roycrippen / j1-cpu Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 359 KB

J1 CPU emulator written in Rust.

License: BSD 3-Clause "New" or "Revised" License

Rust 57.58% Forth 19.89% Makefile 0.10% VHDL 16.02% Verilog 3.64% C 2.78%
rust j1 j1-cpu emulator forth

j1-cpu's Introduction

J1 CPU emulator

J1 CPU emulator written in Rust.
Ported from j1 written in go.
requires rustup

build and install

$ cargo install --path . 

executables

Help with executable arguments <executable> -h or <executable> --help

Name Description
j1 j1 emulator
j1_dump dump j1 cpu memory in assembly or instruction AST format
j1_example_compile_and_dump example of programmatically using j1

test

$ cargo test

document

$ cargo doc
# open j1-cpu/target/doc/j1/index.html with browser

run j1 eforth repl

# option -r or --repl
$ j1 --repl

run j1 eforth repl with a script

# from j1-cpu directory
$ j1 --repl --script resources/simple.fth

j1 options

# help -h or --help
# Note: results saved to <script_file>-log.txt if not running repl
$ j1 -h

j1 1.0
Roy Crippen
J1 cpu emulator

USAGE:
    j1 [FLAGS] [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -r, --repl       Run the J1 forth repl
    -V, --version    Prints version information

OPTIONS:
    -b, --bin <bin_file>          Binary J1 forth imamge to load
    -s, --script <script_file>    Forth script file to load and execute

todo

Task Done
stack
instructions
cpu
dump memory to asm and ast
j1 emulator
arguments for j1 executable
j1 gRPC service
add verbosity levels

j1-cpu's People

Contributors

roy-crippen avatar

Stargazers

 avatar

Watchers

 avatar  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.