Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this project, you will create a simple assembler program for the MIPS assembly language by using Java / Python programming language. Your program receives

In this project, you will create a simple assembler program for the MIPS assembly language by using Java/Python programming language. Your program receives the source code filename (for example mycode.asm), translates each instruction into the machine code(HEX or Binary), and stores them with their associated address in an output file with the same name as the input file but with .obj extension.
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 (J-type)
The source code in the input file can contain several instructions with different types, The target address of BEG. BNE, and J instructions are determined by labels in the source code.
The start Address of the program is 000400000
For example, consider the following source code
. text
again: add $11,$12,$23
show: addi $8,$7,-1234
andi $3,$7,127
beq $8,$10, show
bne $4,$6,x1
x1:
sll $17,$18,4
j again .Please consider Iam using inteliJ community as my coding app
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions