Skip to content

I-UseArch-Btw/MipsToMachineCodeConverterJava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

GUI-based Java application that converts MIPS assembly code to machine code. Your program receives the source code via a multiple-line text field, translates each instruction into the machine code in binary or hexadecimal, and displays them with their associated address in an output Text Field. For Simplicity, only consider the following MIPS instructions:

ADD, SUB, AND, OR, SLL, SRL, SLLV, SRLV (R-type)

ADDI, ANDI, LW, SW (I-Type)

BEQ, BNE, BLEZ, BGTZ (I-type)

J, JAL (J-type)

The source code contains several instructions with different types, The target addresses of BEG, BNE, and J instructions are determined by labels in the source code. The registers are given with their convenient names(not their numbers) such as $a0, $v1, $s4, ...

The start Address of the program is 0x00400000

For example, consider the following source code:

image

GUI-based program should be something as follows:

image

About

A java GUI app that turns MIPS assembly instructions to machine code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages