.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"
927 views Asked by duge007 At
1
There are 1 answers
Related Questions in RANGE
- How to evaluate the probability of a range in R?
- drop down list to decide which range my graph will plot
- How to write a clickable link in VS Code terminal that points to a multiline range?
- VBA script to read values from one worksheet and write to another (set range problem)
- Convert ClosedRange<String> to List in Kotlin?
- VBA dynamic feed multiple files into current one but error of "Run-rime error 7 out of memory" occurs
- How to use std::ranges::set_symmetric_difference over a non sorted range?
- Extracting text from a merged range in multiple sheets
- How do I assign a range and a 1d array to a 2d variant array?
- Python: Generate range of values for groupby values
- slider input ranges in html with min and max values inside a table and a for loop
- Google sheets newbie - corresponding cells autofill based on dropdown choice
- Using awk how do i find numbers in a file between 200 and 400?
- How to get Word VBA Convert Selection Range from one Shade to another Confined to End of Selected Range?
- Excel cell validation set by vba sets incorrect data range
Related Questions in MIPS
- My prompt message not working in mips program
- How do I extract ints from an array using MIPS Assembly?
- MIPS Aiken to Binary
- Can anyone help me understand why my MIPS assembly code isn't adding or subtracting correctly?
- MIPS runtime error "line 31: Runtime exception at 0x00400038: address out of range 0x7fbffffc Go: execution terminated with errors."
- Getting the error "Error in : invalid program counter value: 0x00000000 Go: execution terminated with errors. " in MIPS assembly
- MIPS $a_ and $v_ registers producing incorrect output
- MIPS pipeline forwarding
- -- program is finished running (dropped off bottom) --
- Implementing beq instruction to a simple control unit in logisim
- MIPS Assembly Language invalid program counter value error
- Code wont stop running in MIPS assembly simulation
- How to read controle signals from the opcode for a single-clock processor
- "Illegal instruction" appear when try to get PRID by mfc0 instruction on Loongson-3A R4 (MIPS64)?
- Seeking Verification: MIPS Cache Set Update Analysis
Related Questions in OUTOFRANGEEXCEPTION
- Initialize List<T> with index--is this a bug?
- Index Out of Range Exception on GridView1.SelectedIndex
- Multiple Date Pickers In View Causes Out Of Range Error
- SwiftUI + ForEach is hitting "index out of range" while redrawing matrix with new dimensions
- User memory limit exceeded in gee , How to resolve this error?
- Out of range exception thrown when declaring a C++ vector on the free store
- Index Out of Range In A Recursive Call (Binary Search)
- IndexError: list index out of range in Disco Diffusion v5.4
- Sorting algorithm works for C-array but not works for std::span
- (UWP) Indexing List Causes System.ArgumentOutOfRangeException when Accessing ComboBox
- select_item=tree_frame.selection()[0] IndexError: tuple index out of range error coming in python Tkinter
- Prometheus is giving "IndexError: list index out of range"
- Index out of range/ conditional issues
- in C#: looping through a string or a string array if the index is higher than the length of the string
- I am getting an index out of range error from the data received from the API, how can I solve it?
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?
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)
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.