assembly - xor command causing "Memory Address out of bounds" Error in Mips -


I have to print an excerpt from two numbers, however, when I try to get it, Memory address ". What's going wrong?

Here is the code:

 . Data first: .asciiz is "0x 0 zero": .0 words: a. Word1 .text menu: li $ v0, 4 la $ a0, first syscall # print, first li $ v0, 4a $ a1, zero La $ a2, zero Xer $ a0, $ a1, $ a2 syscall #print 0xor 0 li $ v0, 10 Syscall #exit  

When it prints at the command prompt, Get:

  0 xor 0 is from memory address bounds  

Why did I get this error?

I have understood it, I

  la $ v0, 4  

, instead I should use it to print the integer:

  la $ v0, 1  < / Pre> 

Comments

Popular posts from this blog

c# - Reactive Extensions ControlScheduler -

multithreading - Reorderings in java memory model -

java - Add color code support to a Bukkit plugin -