GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

; 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 Details

Simulate 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 Details

Why don’t we use BR to call a subroutine?  [1] The RET instr…

Why don’t we use BR to call a subroutine?  [1] The RET instruction is an alias for [2]  

Read Details

Choose the best description of the LEA instruction as used i…

Choose the best description of the LEA instruction as used in LC-3 assembly

Read Details

Complete the symbol table for the following code: Label:…

Complete the symbol table for the following code: Label: Address: START [1] [2] [3] [4] [5] [6] [7]

Read Details

Match the description to the instruction

Match the description to the instruction

Read Details

Imagine 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

Simulate different scenarios in your head, but in all scenar…

Simulate different scenarios in your head, but in all scenarios assume condition check is eventually false Then give the best answer to the following: Shape A is [1] Shape B is [2] Shape C is [3] Shape E is [4]

Read Details

To perform an LDI instruction the processor first [off_ext]…

To perform an LDI instruction the processor first [off_ext] and [addr_form] this result is [first_op].  The data [op] is then [2nd_op], and data returned is [final]

Read Details

At what 4-digit hex address is the label LOOP defined [1] Wh…

At what 4-digit hex address is the label LOOP defined [1] What offset (answer as a decimal number) would be encoded into the BRnp instruction [2] True/False: (simply type true or false in the box) the program would not work if line 29 was: RESULT  .BLKW 1                  [3]  

Read Details

Posts pagination

Newer posts 1 … 7 8 9 10 11 … 88,387 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top