{"id":6759,"date":"2018-02-20T23:50:30","date_gmt":"2018-02-20T23:50:30","guid":{"rendered":"http:\/\/essaysparlor.com\/mips-assembly-mars\/"},"modified":"2017-02-20T19:52:45","modified_gmt":"2017-02-20T19:52:45","slug":"mips-assembly-mars","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/mips-assembly-mars\/","title":{"rendered":"Mips assembly MARS"},"content":{"rendered":"<p>Mips assembly MARS<\/p>\n<p>Rewrite the program to use a procedure for the conversion. In other words, if you send \ufffd\ufffd\ufffdapple\ufffd\ufffd\ufffd to the procedure it will return \ufffd\ufffd\ufffdAPPLE\ufffd\ufffd\ufffd.  Leave the rest of the code in<\/p>\n<p>main. Test it on the source strings: \ufffd\ufffd\ufffdloop2:\ufffd\ufffd\ufffd and \ufffd\ufffd\ufffdElephant!\ufffd\ufffd\ufffd In other words, code in your main program calls the procedure twice, once for each source string. You<\/p>\n<p>should print a memory screen shot after the program runs, showing that both strings were converted \ufffd\ufffd\ufffd check the ASCII box.<\/p>\n<p>You should add code to check if each byte is in fact a lowercase letter, and only convert if it is; otherwise it should just copy it.<\/p>\n<p>In the program you could use $tn registers but in this program you should follow the conventions for using $sn and $tn registers.<\/p>\n<p>Also, use the directive .space for the upper case strings, reserving at least 10 bytes for each of the 2 upper strings.<\/p>\n<p>Table 2: Rubric for problem 2<\/p>\n<p>Task<\/p>\n<p>Points<\/p>\n<p>Code and screen shot<\/p>\n<p>5<\/p>\n<p>Memory screen shots for 2 inputs<\/p>\n<p>10<\/p>\n<p>Correct procedure usage<\/p>\n<p>5<\/p>\n<p>Code checks a-z range<\/p>\n<p>5<\/p>\n<p>Correct use of $tn and $sn<\/p>\n<p>5<\/p>\n<p>Main code calls procedure twice<\/p>\n<p>5<\/p>\n<p>Code comments, formatting<\/p>\n<p>5<\/p>\n<p>Total<\/p>\n<p>40<\/p>\n<p>1.      Single-step through your program through the first subroutine call and back, then answer the following questions. Copy a-g below  and paste your answers\/screen<\/p>\n<p>shot here.<\/p>\n<p>a.       What is the value of PC before you execute the jal?<\/p>\n<p>b.      What is the value of $ra before you execute the jal?<\/p>\n<p>c.       Set a breakpoint to the jr instruction and run until then. What is the value of PC before the jr?<\/p>\n<p>d.      Single step back to the main program.  What address is in the next instruction?<\/p>\n<p>e.       What value is in the PC?<\/p>\n<p>f.        Write a 2-3 sentence summary describing how the PC and $ra registers change when a subroutine is called and when we return from a subroutine.<\/p>\n<p>Table 3: Rubric for problem 3<\/p>\n<p>Task<\/p>\n<p>Points<\/p>\n<p>a.<\/p>\n<p>5<\/p>\n<p>b.<\/p>\n<p>5<\/p>\n<p>c.<\/p>\n<p>5<\/p>\n<p>d.<\/p>\n<p>5<\/p>\n<p>e.<\/p>\n<p>5<\/p>\n<p>f.<\/p>\n<p>10<\/p>\n<p>Total<\/p>\n<p>35<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mips assembly MARS Rewrite the program to use a procedure for the conversion. In other words, if you send \ufffd\ufffd\ufffdapple\ufffd\ufffd\ufffd to the procedure it will return \ufffd\ufffd\ufffdAPPLE\ufffd\ufffd\ufffd. Leave the rest of the code in main. Test it on the source <a href=\"https:\/\/www.benedictsol.com\/blogs\/mips-assembly-mars\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-6759","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/6759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/comments?post=6759"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/6759\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=6759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=6759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=6759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}