• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/38

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

38 Cards in this Set

  • Front
  • Back

How many memory locations are in LC-3?

2^16

What is the width (in bits) of MAR and MDR in LC-3?

16 bits

T or F? Addressing mode is a mechanism for specifying where the operand is located

True

T or F? The ISA specifies items including the opcodes and addressing modes.

True

T or F? In a Von Neumann machine, data and instructions both reside in memory.

True

T or F? The set of AND, OR, NOT gates is logically complete.

True

T or F? The addressing mode for LEA is PC-relative

False

T or F? The FETCH phase is common to all instructions.

True

Give an instruction in LC-3 that corresponds to the pseudo-instruction CLEAR R1, which sets R1 to 0

AND R1, R1, #0

T or F. LEA modifies the condition code bits.

True

T or F. .END is an assembly language instruction

False

T or F. HALT is actually a TRAP instruction.

True

Using operate type instructions only place the value 45 in R1.

AND R1, R1, #0


ADD R1, R1, #15


ADD R1, R1, #15


ADD R1, R1, #15

In LC-3 all memory can be accessed with 16 bits

True

T or F. The .ORIG pseudo-op is translated into machine instruction.

False

T or F. Assembly languages are more user friendly than high level languages.

False

T or F. Normally the values of symbol table entries generated by .EXTERNAL are resolved in the second pass of the assembler.

True

T or F. The System Control Block or the Trap Vector Table is a set of memory locations which contain the starting addresses of the service routines.

True

T or F. Invoking a subroutine automatically saves R7, which holds the return address.

True

T or F. At any point there are as many frames in the stack as there are pending subroutines (including main()).

True

T or F. The opcode of the service routine PUTS is the same as that of the TRAP instruction.

True

T or F. The LC-3 uses special Memory-Mapped I/O to communicate with I/Odevices.

True

T or F. A computer has a 16 bit address space A[15:0]. If all addresses having bits A[15:13]=111 are reserved for I/O device registers, then the maximum number of actual word addressable memory locations is 2^16 − 2^14.

False

T or F. A NO OP is an assembly language instruction (not necessarily in LC3) that does nothing beyond being a place holder.

True

T or F. The location counter is initialized using the .ORIG assembler directive.

True

T or F. The location counter for an assembly program is used during the execution of the program to keep track of the location of each instruction.

False

T or F. The .BLKW initializes the space it allocates.

False

T or F. The result of the linker program is the executable.

True

Once a program reads a character from the KBDR, automatically KBSR[15] is ______.

0

What is the purpose of the .END pseudo-op? How does it differ from the HALT instruction?

.END tells the assembler when to stop assembling. It differs from HALT because HALT is an instruction & .END is not. .END can never be executed, it doesn't stop the machine, it simply makes the assembler stop assembling.

What is the purpose of bit [15] in the KBSR?

Its used to check whether new characters have been received by the keyboard. If bit 15 is 0, no key has been struck since the last time the processor has read the data.

What problem could occur if the display hardware does not check the DSR before writing to the DDR?

It could overwrite the previous value of DDR before its displayed.

How many TRAP service routines can be implemented in the LC-3? Why?

256 TRAP service routines because there are 256 vector locations

Why must a RET instruction be used to return from a TRAP routine? Why won't a BR instruction work instead?

Using a RET instruction executes a TRAP routine & jumps to the code in the TRAP vector & copies the value into a register. Using BR instructions we won't know the return location & doesn't store the value into a register.

How many access to memory are made during the processing of a TRAP instruction? Assume TRAP is already in the IR.

One access to memory

What are the defining characteristics of a stack?

Stacks are LIFO (Last In First Out) in structure. As such, the last thing put in the stack will be the first one to get out from the stack.

How many bits are:


int, double, and char

int: 16 bits


double: 32 bits


char: 8 bits

T or F. A recursive function is one that solves its task by calling itself on smaller pieces of data.

True