.globl main doesn't define the symbol, it just marks it as global if it will ever be defined. You need to add a main: label to the appropriate place, which in your case would probably be the first instruction.
answered Nov 8, 2014 at 0:57 58.2k 4 4 gold badges 84 84 silver badges 126 126 bronze badgesYou should change the simulator Settings. Simulator-->Settings-->MIPS-->Exception Handler: Uncheck this option "Load Exception Handler" this way you disabling the native MIPS code and your own code works.
answered Sep 13, 2015 at 15:09 61 1 1 silver badge 1 1 bronze badgeI am a complete beginner to MIPS but when I was using QtSPIM this error popped up a lot. It turned out that it was because I was clicking on 'Reinitialize Simulator" every time, and that caused the error. So whenever you want to re-run a program just clear registers, dont reinitialize simulator.
answered Aug 25, 2020 at 2:27 1 1 1 silver badge 1 1 bronze badgeTo subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2024.9.4.14806