ps5pr6.txt - ps5pr6(Problem Set 5 Problem 6 Squaring and...

This preview shows page 1 out of 1 page.

# # ps5pr6.txt (Problem Set 5, Problem 6) # # Squaring and counting # 00 read r1 # get # from user and store it in r1 01 setn r2 0 # set r2 to 0 02 write r2 # prints r2 as 0 03 call r4 5 # function call 04 halt # halts the program 05 addn r2 1 # adds r2 value by 1 06 write r2 # prints out new r2 value

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture