0.0
No commit activity in last 3 years
No release in over 3 years
Class to test MIPS asm files. It relies on MARS' cli, so be sure to download its JAR first.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 2.6
 Project Readme

MIPS Tester

MIPS Tester is a simple class that provides the ability to mass test MIPS assemblies. It relies on MARS (it's ugly I know, but SPIM's cli doesn't work with automated inputs).

Installation & Prerequisites

  • Install MIPS Tester:

      $> gem install mips_tester
    
  • Install the Java Runtime

  • Download MARS Put it somewhere handy, the path will be requested at runtime!

Getting Started: Test an empty program

$> touch test.asm
$> irb
$irb :001> require 'mips_tester'
$irb :002> tester = MIPSTester::MIPS.new :mars_path => "/Applications/MARS_4_1.jar"
$irb :003> tester.test "test.asm" do
$irb :004>		set :s0 => 0x01
$irb :005>		set '0x10010004' => 45
$irb :006>		expect :s0 => 0x01, :s1 => 0x45
$irb :007>		verbose! # Optional verbosity!
$irb :008> end
	=> true

Compatibility

Tested on

  • ruby-1.9.2-p180
  • ruby-1.8.7-p330
  • rbx-head 1.2.4dev