CSE101 –HomeWork #2 Solved

30.00 $

Category:

Description

5/5 - (1 vote)
  • Write an assembly program which takes an input as an integer number (youshould assign the number into one register or memory space). The program will calculate factorial of the number (only for 1, 2, 3, 4, and 5). You should show result on SimpSim display.

Add a screenshot as a .png file. Upload your .asm file on moodle. The file name should be in the same in the form of : number_name_surname (ex: 181041001_ozgu_goksu_part1.asm).

Ex: Given number 3 Display:  Result 6

If you do not show your results on the display, you will lose point.

  • Write an assembly program which takes a string. The program will show the reverse string on display. You should show result on SimpSim display.

Add a screenshot as a .png file. Upload your .asm file on moodle. The file name should be in the same in the form of : number_name_surname (ex: 181041001_ozgu_goksu_part2.asm).

Ex: Given string “test”

Display:  “tset”

If you do not show your results on the display, you will lose point.

  • Write your name in binary form using ASCII table.
  • 4AA 501      78C             997           10101111

F12                 4B3               1A3            01E           11110010

   +                      +                   –                  –                +              

Part 3 and Part 4 should be .pdf file. Upload your .pdf file on moodle. The file name should be in the same in the form of : number_name_surname (ex: 181041001_ozgu_goksu.pdf).

  • HW2-8hmwpm.zip