Skip to content

Commit

Permalink
Revert to MIPS arch for merge purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
Geetis committed Feb 16, 2024
1 parent 5e6c3c6 commit 21f8c06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ use yew_hooks::prelude::*;
// To load in the Fibonacci example, uncomment the CONTENT and fib_model lines
// and comment the code, language, and text_model lines. IMPORTANT:
// rename fib_model to text_model to have it work.
// const CONTENT: &str = include_str!("../static/assembly_examples/fibonacci.asm");
const CONTENT: &str = include_str!("../static/assembly_examples/riscv_test.asm");
const CONTENT: &str = include_str!("../static/assembly_examples/fibonacci.asm");
// const CONTENT: &str = include_str!("../static/assembly_examples/riscv_test.asm");

#[function_component(App)]
fn app() -> Html {
Expand Down
3 changes: 2 additions & 1 deletion src/parser/parser_assembler_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ use gloo_console::log;
/// program and builds the binary of the instructions while cataloging any errors that are found.
pub fn parser(file_string: String) -> (ProgramInfo, Vec<u32>) {

let arch = Architecture::RISCV; // Force RISC-V for testing purposes
// Force MIPS to pass unit tests until I change the function arguments for SWIMv1 test cases``
let arch = Architecture::MIPS;

if arch == Architecture::MIPS
{
Expand Down

0 comments on commit 21f8c06

Please sign in to comment.