Computers and Technology, 11.10.2020 23:01 mariana5493
MIPS assembly language
The ideal gas law allows the calculation of volume of a gas given the pressure(P), amount of
the gas (n), and the temperature (T). The equation is:
V = nRT / P
Since we only have used integer arithmetic, all numbers will be integer values with no decimal points. The constant R is 8.314 and will be specified as (8314/1000). This gives the same result. Implement the idea gas law program where the user is prompted for and enters values for n, T, and P, and V is calculated and printed out. Be careful to implement an accurate version of this program. Your program should include a proper and useful prompt for input, and print the results in a meaningful manner.
INSTRUCTIONS:
- Use the provided assembly source file as template. Note that the format IS mandatory as well as the header output. (See source file for details).
- File name must follow the specified format: last_first_assignment. asm
- Points will be deducted if format is not followed.
nguyen_kevin_prog1.asm
# Program File: Program-1.asm
# Author: Kevin Nguyen
# Purpose: Programming assignment #1
# P R O G R A M S E G M E N T #
.text
main:
# Print mandatory output
li $v0,4
la $a0, header
syscall
la $a0, info
syscall
la $a0, author
syscall
la $a0, footer
syscall
# Add your code below this line
# Program termination
li $v0, 10
syscall
# D A T A S E G M E N T #
.data
# Mandatory output
header: .asciiz "\n++"
info: .asciiz "\n| CMPE102-S2 - FA2019 - Program1" # Course & assignment information
author: .asciiz "\n| Kevin Nguyen - 1234" # full name and last 4 digits of studentID
footer: .asciiz "\n++\n"
# End of mandatory output
# Program data definition
# Add your data here
Answers: 3
Computers and Technology, 22.06.2019 04:30, justbepunky
There is a simple pattern for determining if a binary number is odd. what is it and why does this pattern occur? how many bits would you need if you wanted to have the ability to count up to 1000? how high could you count in binary if you used all 10 of your fingers as bits? (finger up means 1, finger down means 0)
Answers: 3
Computers and Technology, 23.06.2019 06:40, euniceyi56
How many nibbles can be stored in a 16-bit word?
Answers: 1
Computers and Technology, 23.06.2019 13:00, dimondqueen511
Which one of the following voltages should never be measured directly with a vom? a. 1200 v b. 500 v c. 800 v d. 100v
Answers: 2
MIPS assembly language
The ideal gas law allows the calculation of volume of a gas given the pressu...
Mathematics, 26.07.2019 00:30
Business, 26.07.2019 00:30
Mathematics, 26.07.2019 00:30
Mathematics, 26.07.2019 00:30
Biology, 26.07.2019 00:30