GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

Simulate the following code in your head.  Then answer the q…

Simulate the following code in your head.  Then answer the questions posed. This code performs [Alg] When finished R1 will contain [R1] The last 9-bits of the “BR LOOP” instruction are: [offset] Are there any clues that this code was intended to work with the lc3os? [lc3os]    

Read Details

What is the capacity of a memory with 3 address bits and 4-b…

What is the capacity of a memory with 3 address bits and 4-bit data words. (simply enter a number for the number of bits)

Read Details

The most negative number an LC-3 operand can be is: [1] Oper…

The most negative number an LC-3 operand can be is: [1] Operands stored in registers can be considered to be [2] The most positive an immediate LC-3 operand can be is [3]  

Read Details

If the last instruction executed was an ADD that resulted in…

If the last instruction executed was an ADD that resulted in x0C1D, which of the following branch instructions would be taken BRnz [BRnz] BRnp [BRnp] BRzp [BRzp] BR [BR]

Read Details

A memory has 6 address bits and a data word size of 4-bits:…

A memory has 6 address bits and a data word size of 4-bits: The total capacity is [1] The number of words is [2] An appropriate name for its data output would be [3]

Read Details

; 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

Posts pagination

Newer posts 1 … 184 185 186 187 188 … 88,565 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top