0

I'm trying to complete a programming assignment for my class with these instructions

Hints: You will need qtSPIM installed and configured correctly in order to write these programs. Only hand in SOURCE CODE.
MP4: This program should add the numbers 2, 5 and 7 and store the result in the C register. MP5: Hand in your assembly language program MP5_YourFullName.asm here on Blackboard. Enter your name as an ASCII hex string in the .DATA section of your program. Create a loop and output 1 character at a time in the loop. Hint: NULL terminate your string, use that as a conditional to check for end of string. MP6: Hand in your assembly language program MP6_YourFullName.asm here on Blackboard. Encode your ASCII name from MP5 so it's not readable if you look at the data section of your program in the qtSPIM hex editor. Your program should loop through each character in your name and output the correct letter to the console. Hint: Go character by character, do not print the entire string in a single statement (if you do, you are not following instructions). Hint: bitwise operators are your friend.

I was following a tutorial on how to use QtSpim, and they suggested the best starting place is to load your own "helloworld.s" file. However, when I tried to load the file in, I saw the rainbow wheel and everything on my laptop froze. Please help!

I tried to load a simple .s file and never received any sort of output.

sab
  • 1
  • 2
  • AFAIK, QtSPIM is a fairly normal C program, it shouldn't be able to lock up the whole machine. Unless it does something special for its graphics output? Other people have reportedly been able to run it on MacOS systems, as in [Assembly Language .asciiz Error on Mac QtSpim](https://stackoverflow.com/q/35376203), IDK why your Mac would be different. The other widely used MIPS simulator, MARS, is written in Java so it has some oddities about directories for your source files, [How to open a saved .asm file in MARS on MacOS](https://stackoverflow.com/q/69021712). Presumably unrelated. – Peter Cordes Dec 12 '22 at 02:29

0 Answers0