diff --git a/.gitignore b/.gitignore
index 4b04142..eed0c78 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,10 @@
.DS_Store
+.firebase
+.firebaserc
/target
**/*.rs.bk
Cargo.lock
pkg/
wasm-pack.log
-www/node_modules
www/dist
+**/node_modules
diff --git a/README.md b/README.md
index a435994..6381fa7 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,8 @@
[![Build Status](https://travis-ci.com/d0iasm/rvemu.svg?branch=master)](https://travis-ci.com/d0iasm/rvemu)
RISC-V online emulator with WebAssembly generated by Rust. The instruction sets in this emulator complies "The RISC-V Instruction Set Manual Volume I: Unprivileged ISA Document Version 20190608-Base-Ratified".
+https://riscvemu.web.app/
+
Supports the following RISC-V ISA features:
- RV32I (v2.1): supports 37/40 instructions (except FENCE, ECALL, and EBREAK)
- RV64I (v2.1): supports 12/12 instructions (SLLI, SRLI, and SRAI are included in RV32I)
@@ -17,18 +19,17 @@ Supports the following RISC-V ISA features:
The `wasm-pack build` command generates a pkg directory and makes Rust source code into `.wasm` binary. It also generates the JavaScript API for using our Rust-generated WebAssembly. The toolchain's supported target is `wasm32-unknown-unknown`.
You need to execute this command whenever you change your Rust code.
```
-$ wasm-pack build --out-dir www/pkg
+$ wasm-pack build --out-dir www/pkg --target web
```
-Use `npm init wasm-app www` just once to generate a www directory for a web page. Also, need `npm install` in a www directory at the first time and whenever you change a dependency in package.json.
+This command installs dependencies in the `node_modules` directory. Need `npm install --save` in the `public` directory at the first time and whenever you change dependencies in package.json.
```
-$ npm init wasm-app www // at a root directory
-$ npm install // at ./www directory
+$ npm install --save // at the public directory
```
-You can see a web page via http://localhost:8080/ that reflects changes when we rus the wasm-pack build command.
+You can see the website via http://localhost:8000. `npm start` is the alias of `python3 -m http.server` so you need Python3 in your environment.
```
-$ npm start
+$ npm start // at the public directory
```
## Test
diff --git a/firebase.json b/firebase.json
new file mode 100644
index 0000000..6dd839b
--- /dev/null
+++ b/firebase.json
@@ -0,0 +1,9 @@
+{
+ "hosting": {
+ "public": "public",
+ "ignore": [
+ "firebase.json",
+ "**/.*"
+ ]
+ }
+}
diff --git a/public/404.html b/public/404.html
new file mode 100644
index 0000000..829eda8
--- /dev/null
+++ b/public/404.html
@@ -0,0 +1,33 @@
+
+
+
+
+
+ Page Not Found
+
+
+
+
+
+
404
+
Page Not Found
+
The specified file was not found on this website. Please check the URL for mistakes and try again.
+
Why am I seeing this?
+
This page was generated by the Firebase Command-Line Interface. To modify it, edit the 404.html file in your project's configured public directory.