Skip to content

Convert hexadecimal codes to readable MIPS instructions and vice versa

License

Notifications You must be signed in to change notification settings

kyletimmermans/hex2mips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Version 2.1 Python 3.9 Latest Commit kyletimmermans Twitter

hex2mips

Convert hexadecimal codes to readable MIPS instructions and vice versa, see hex2mips.py -h for more information
Can currently deal with the following instructions:
add, addu, sub, subu, and, or, nor, slt, sltu, sll, srl, mult, multu, div, divu, xor, jr, syscall, break, beq, bne, addi, addiu, andi, ori, slti, sltiu, lui, lw, sw, xori, lb, lbu, j, jal
Recognizes the current registers:
$zero, $at, $v0-$v1, $a0-$a3, $t0-$t7, $s0-$s7, $t8-$t9, $k0-$k1, $gp, $sp, $fp, $ra

GUI Mode

GUI Mode

Command Line: Hex 2 MIPS

Command Line Hex 2 MIPS

Command Line: MIPS 2 Hex

Command Line MIPS 2 Hex

Usage / Help

Usage / Help


Changelog

v1.0: Initial-Relase
v2.0:
  -Can now convert from MIPS instruction to hex
  -Send hex or MIPS instruction through command line instead of getting text GUI
    -See hex2mips.py -h
  -Better error handeling / messages and input sanitization
  -Hex letters outputted in uppercase letters
  -General bug fixes
  -More comments and diagram in header
v2.1
  -Added if __name__ == "__main__":
  -Refactor / Moved code into main
  -Added Python Shebang
  -Added --version and -v command line flag

About

Convert hexadecimal codes to readable MIPS instructions and vice versa

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages