Skip to content

Commit

Permalink
Removed wasm related processing
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavale committed Jan 14, 2021
1 parent 7d3234a commit 3826a16
Show file tree
Hide file tree
Showing 26 changed files with 98 additions and 6,824 deletions.
33 changes: 1 addition & 32 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,6 @@ description = "A MIPS-32 simulator"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
rand = { version = "0.7", features = ["wasm-bindgen"] }
rand = "0.8.2"
clap = "2.33.3"
js-sys = "0.3.46"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"

# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1.6", optional = true }

[dependencies.web-sys]
version = "0.3.46"
features = [
'Blob',
'CanvasRenderingContext2d',
'Document',
'Element',
'File',
'FileList',
'FileReader',
'HtmlCanvasElement',
'HtmlInputElement',
'HtmlTextAreaElement',
'ImageData',
'Node',
'Performance',
'Window',
]
1 change: 0 additions & 1 deletion src/lexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ pub fn tokenize(nol: u32, fi: usize, line: &str, mut tokens: &mut Tokens)
"PRTX" => TokenKind::INSTRUCTION(InstructionKind::PRTX),
"PRTC" => TokenKind::INSTRUCTION(InstructionKind::PRTC),
"PRTS" => TokenKind::INSTRUCTION(InstructionKind::PRTS),
"DISP" => TokenKind::INSTRUCTION(InstructionKind::DISP),
"RST" => TokenKind::INSTRUCTION(InstructionKind::RST),

// FPU Instructions
Expand Down
168 changes: 0 additions & 168 deletions src/lib.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/parser/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::token::register::Registers;

// Display help
// Use only in REPL
#[allow(dead_code)]
pub fn display_help() {
println!("exit ... to exit");
println!("help ... display this message");
Expand Down
Loading

0 comments on commit 3826a16

Please sign in to comment.