ps5pr9.txt - ps5pr9(Problem Set 5 Problem 9 Calling a...

This preview shows page 1 out of 1 page.

# # ps5pr9.txt (Problem Set 5, Problem 9) # # Calling a distance function twice # 00 read r1 # reads in the value of r1 01 read r2 # reads in the value of r2 02 read r3 # reads in the value of r3 03 copy r4 r2 # copies the value of r2 to r4 04 call r14 14 # sets the register r14 as line number 05 and jumps to line 14 05 copy r6 r13 # copies the value of r13 to r6 06 copy r4 r3 # copies the value of r3 to r4 07 call r14 14 # sets the register r14 as 08 and jumps to line 14 08 sub r12 r6 r13

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture