; Routine takes max of two arguments (R0,R1) returns in R0 ;…
; Routine takes max of two arguments (R0,R1) returns in R0 ; R0 = Argument 1 ; R1 = Argument 2 ; Computes the max of R0 and R1 and places it in R0 MAX [1] ; negate R1 [2] [3] ; compare R0 to R1 [4] ; decide based on comparison [5] DONE RET This routine is [6]
Read DetailsSimulate this code in your head Register R1’s purpose is bes…
Simulate this code in your head Register R1’s purpose is best described as [1] Register R0’s purpose is best described as [2] The value in register R3 is [3] This algorithm implements [4] This algorithm does not work when Var2 is negative or zero. It work when Var1 is: [5]
Read DetailsImagine in the PennSim simulator line 3 (address 0x321F) was…
Imagine in the PennSim simulator line 3 (address 0x321F) was highlighted yellow (line of code to be executed next). If we hit: Step the next line highlighted would be [1] If instead we hit Next the next line highlighted would be [2] If the current highlighted line was line 7 (address 0x3222) and we hit Next the next line highlighted would be [3]
Read Details