Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

.data # Data segment, it will hold strings, variables, etc. Welcome: .asciiz Welcome To MIPS Prorgamming... ! Name: .asciiz My name is Dr.

.data # Data segment, it will hold strings, variables, etc. Welcome: .asciiz Stop: li Sv0, 4 # Code in Svo to print string la Sao, Name #Base address of Name is loaded into $a0 syscall #Statement: Change the sample to print your age and experience in floating point formats, e.g., experience:

.data # Data segment, it will hold strings, variables, etc. Welcome: .asciiz "Welcome To MIPS Prorgamming... !" Name: .asciiz " My name is Dr. Jan" Age: .asciiz " My age is: " AGE: .word 50 Experience: .asciiz " my expereince in years is: EXP: 23 Word text #code segment, il conatins Op-code/Instructions Stop: li Sv0, 4 # Code in $v0 to print string la Sao, Name #Base address of Name is loaded into $a0 syscall # Print message to Mars Messages Console li Sv0, 4 # Code in Svo to print string la Sa0, Age #Base address of Age is loaded into $a0 syscall # Print message to Mars Messages Console li Sv0, 1 # Code in $v0 to print string Iw $a0, AGE # AGE is loaded into $a0 syscall # Print message to Mars Messages Console $v0, 4 # Code in $v0 to print string la $a0, Experience # Base address of Experience is loaded into $a0 syscall # Print message to Mars Messages Console li $v0, 1 # Code in $v0 to print string Iw $a0, EXP # EXP is loaded into $a0 syscall # Print message to Mars Messages Console li $v0, 10 # Code to stop simulation syscall Statement: Change the sample to print your age and experience in floating point formats, e.g., experience: 2.3 years and age 27.5 years. Code:

Step by Step Solution

3.46 Rating (153 Votes )

There are 3 Steps involved in it

Step: 1

To print the age and experience in floating point formats in MIPS assembly language you will need to modify the data segment to include your age and e... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Is this issue more complex than it seems?

Answered: 1 week ago