{"id":211041,"date":"2018-09-14T12:55:59","date_gmt":"2018-09-14T12:55:59","guid":{"rendered":"http:\/\/localhost\/wordpress\/index.php\/2018\/09\/14\/ect-330-week-3-homework\/"},"modified":"2018-10-24T08:59:17","modified_gmt":"2018-10-24T08:59:17","slug":"ect-330-week-3-homework","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/ect-330-week-3-homework\/","title":{"rendered":"ECT 330 Week 3 Homework"},"content":{"rendered":"<p>1.\u00a0Write a program to clear Register B, and then add the number three to B seven times. Use the BNE instruction with DECA\t2.\u00a0Write a program to clear Register A, add five to Register A 10 times, and place the result in RAM Location $2000. Use a RAM location for holding the counter.\t3.\u00a0What is the size of each instruction?\tI. LDAA #50\tII. BEQ there\tIII. STAA $2000\tIV. DECB\tV. LDAB 0, X\t4.\u00a0Write the sequence of instructions to save Registers A, Y, and X in the Stack with the given order. Write the sequence of instructions to retrieve those values back.\tSaving A, Y, and X in Stack:\t\t1 __________\t\t2 __________\t\t3 __________\t\t\tRetrieving values back:\t\t1 __________\t\t2 __________\t\t3 __________\t5.\u00a0Show code for a nested loop to perform an action 1,000 times<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u00a0Write a program to clear Register B, and then add the number three to B seven times. Use the BNE instruction with DECA 2.\u00a0Write a program to clear Register A, add five to Register A 10 times, and place the <a href=\"https:\/\/www.benedictsol.com\/blogs\/ect-330-week-3-homework\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-211041","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/211041","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=211041"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/211041\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=211041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=211041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=211041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}