Free Online Flashcard Deck

5 Assembly Concepts Free Online FlashCards

Study 5 Assembly Concepts with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What is assembly language, and why is it architecture-specific?

Back

Assembly language is a human-readable notation for a processor’s instruction set. It is architecture-specific, so instruction names and syntax vary between processors.

02
Front

What does an assembler do?

Back

An assembler translates assembly instructions into machine-code instructions.

03
Front

What is a register?

Back

A register is a small, fast storage location inside the CPU.

04
Front

What common roles do RISC-V ABI register names describe?

Back

In RISC-V, `zero` always reads as 0, `ra` holds a return address, `sp` points to the stack, `t0`–`t6` are temporary registers, and `a0`–`a7` are commonly used for arguments.

05
Front

What are a mnemonic and operands in an assembly instruction?

Back

A mnemonic names the operation, and its operands specify the values or locations it uses.

06
Front

How do `add` and `addi` differ?

Back

`add` combines register values, while `addi` adds a constant to a register value.

07
Front

What is a pseudoinstruction?

Back

A pseudoinstruction is assembler-provided shorthand translated into real instructions; examples include `li`, `mv`, and `ret`.

08
Front

What purpose does a label serve in assembly?

Back

A label names a location in a program, giving a branch or jump a readable destination.

09
Front

When does `beq t0, t1, equal` branch to `equal`?

Back

`beq t0, t1, equal` transfers control to `equal` if the two registers are equal; otherwise, execution continues with the next instruction.

10
Front

How can branches express an `if` statement or a loop?

Back

A conditional branch can express an `if` statement. A label paired with a backward branch can form a loop.

11
Front

How does a taken branch affect the normal instruction sequence?

Back

The program counter normally advances through instructions. When a branch is taken, execution moves to the branch’s destination instead.

12
Front

What is a procedure in assembly?

Back

A procedure is a named block of instructions that performs a task. A caller transfers control to it, and it returns control to the instruction after the call.