How do I pass and store two strings in the program argument provided to MIPS? I have looked everywhere but don't know where to start. How would I know/store the number of program arguments entered, and what the strings arguments hold?
0
votes
1 Answers
0
votes
The official documentation explains this:
Provide program arguments to the MIPS program. Default value is false. New in Release 3.5.
If selected, a text field will appear at the top of the Text Segment Display. Any argument values in this text field at the time of program execution will be stored in MIPS memory prior to execution.
The argument count (argc) will be placed in register$a0, and the address of an array of null-terminated strings containing the arguments (argv) will be placed in register$a1. These values are also available on the runtime stack ($sp).
This setting is available under the Settings menu in Mars.