.text
main: #Main function to be run
la $a0, prompt
li $v0, 4
syscall
la $a0, n0
li $a1, 8
li $v0, 8
syscall
move $t0, $v0
la $a0, n1
li $a1, 8
li $v0, 8
syscall
move $t1, $v0
la $a0, n2
li $a1, 8
li $v0, 8
syscall
move $t2, $v0
la $a0, n3
li $a1, 8
li $v0, 8
syscall
move $t3, $v0
la $a0, n4
li $a1, 8
li $v0, 8
syscall
move $t4, $v0
#Outputs
la $a0, ($t0)
li $v0, 8
syscall
la $a0, ($t1)
li $v0, 8
syscall
la $a0, ($t2)
li $v0, 8
syscall
la $a0, ($t3)
li $v0, 4
syscall
la $a0, ($t4)
li $v0, 4
syscall
li $v0, 10
syscall
.data
prompt: .asciiz "Enter a series of 5 formulae:\n" #The prompt to ask the user to type 5 strings
n0: .space 20
n1: .space 20
n2: .space 20
n3: .space 20
n4: .space 20
Trying to run this code in MIPS and i am getting an error saying "Runtime exception at 0x00400090: address out of range 0x00000008"
926 Views Asked by duge007 At
1
There are 1 best solutions below
Related Questions in RANGE
- Type Mismatch in passing Cells(3,4) as a Range argument
- VBA, moving some range down, if not matching time
- Search list for objects valid in a time range
- How do you use a range of numbers in an if statement in livecode?
- Process a list with a loop, taking 100 elements each time and automatically less than 100 at the end of the list
- Ionic - Disable Range Selection with Toggle
- Change range in chart from userform input
- Scala: how to create an "eager evaluated" list with many elements?
- How to select a range of my table
- Parameters required to reconstruct Range object creation
- Calculate Camera tilt angle
- excel 2013 vba code statement to Convert a table numeric cell type (2,4) into text cell type D2
- oracle sql - finding entries with dates (start/end column) overlap
- TextRange.getBoundingClientRect on PDF.js is giving all zeros in IE10/IE11
- Finding if a group of possible times falls within another range.
Related Questions in MIPS
- Encode in machine code an Assembly MIPS instruction
- How to represent mips instruction as it's hex representation
- MIPS: is it possible to overwrite certain words of a file?
- Get conditional branch slot from MIPS cross compiler
- Why load address works different on words and labels with strings?
- passing a parameter in mips
- calculate minimum of array
- How can I access the individual elements of an array in a loop?
- storing array from user and accessing it
- How to demonstrate a 32-bit MIPS with FPUs in a FPGA?
- MIPS: accessing memory addresses with big/small endian
- MIPS Why I can't print the selected array position?
- MIPS, why this branch doesn't work?
- About the latches generated by "case" syntax
- MIPS Code that reads number of lower case letters
Related Questions in OUTOFRANGEEXCEPTION
- Whenever User Inputs, hits an Out Of Range Error
- Static variables/deque and objects
- Multidimensional vector subscript out of range
- List out of range error in python code
- Out of range vector subscript C++
- Uncaught RangeError: Item index is out of range error in WebSQL Query Results
- c# string split ignores empty values between delimiters
- Python3 - Index out of range for existing element
- WPF Tetris Index Out Of Range Exception
- Tell if string to double/float/int/short/byte is out of range
- In what case can this if-statement throw an exception?
- C++ vector::_M_range_check Error?
- MySql does not accept C# float.MinValue in float column
- Trying to run this code in MIPS and i am getting an error saying "Runtime exception at 0x00400090: address out of range 0x00000008"
- List out of range while comparing
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Here's what to do:
Find out what line of your assembly code corresponds to
0x00400090— or the address of the exception. That is the specific instruction that is getting the fault. Then look for inputs to that instruction that are incorrect (i.e. here, that have value0x00000008, and fix the code so that register has a proper address).You can do this in the MARS simulator. When it reports the exception, have a look at the excepting instruction, and check the register values at that point. If you want you can also set a breakpoint on or just before the excepting instruction, and re-run it so you can see the register state as it evolves prior to the exception.