Starting from:

$25

CSE101-Homework 2 Solved

1)     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.

2)     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.

3)     Write your name in binary form using  ASCII table.

4)     4AA                501        78C             997           10101111

      F12                  4B3                1A3            01E           11110010

   +                      +                   -                  -                +                 

More products