Answered step by step
Verified Expert Solution
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 "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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started