I\'m trying to learn about $ra, so the output I want is \"mainfunction1main\" , by main calling function1, function1 returning to main, and main finishing. but for some reason I
You need to return at the end of main. At the moment you'll just fall through to function1 again, which will jump back to main, and then fall through again, etc...