ps5pr8.txt - ps5pr8(Problem Set 5 Problem 8 Using a...

This preview shows page 1 out of 1 page.

# # ps5pr8.txt (Problem Set 5, Problem 8) # # Using a function and a loop to determine if a number is prime # 00 read r1 # read input from user 01 calln r14 # copies address to r14 and jump to line 02 jeqz r9 4 # if r9 == 0, jump to line 4 03 write r7 # write value of r7 04 write r8 # write value of r8 05 jumpn 8 # jump to line 8 06 write r7 # write value of r7 07 write r9 # write value of r9

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture